GIMP Chat
http://gimpchat.com/

Bezier Asymptote - Q for Ofnuts, RobA, or other math gurus
http://gimpchat.com/viewtopic.php?f=9&t=4037
Page 1 of 1

Author:  saulgoode [ Sun Apr 08, 2012 4:14 pm ]
Post subject:  Bezier Asymptote - Q for Ofnuts, RobA, or other math gurus

I wish to find the asymptote between two cubic Bezier curve segments as shown in the following diagram.

Attachment:
bezier-asymptote.png
bezier-asymptote.png [ 5.3 KiB | Viewed 2926 times ]


The end of the P segment will always coincide with the start of the Q segment, and the angle P0-Q0-Q3 will always be greater than the angle P0-Q0-Q1; and both of these angles will be between 90 and 180 degrees (I believe this ensures a unique solution).

I am specifically interested in the end-points where the asymptote intersects the two curves (the ends of the orange line in the diagram) and, if possible, I would prefer a simple formula solution, rather than an algorithmic one (such as walking along the curves).

I am in no particular rush as I will be traveling over the next few weeks, but would really appreciate any guidance provided.

Author:  ofnuts [ Fri May 29, 2015 5:03 pm ]
Post subject:  Re: Bezier Asymptote - Q for Ofnuts, RobA, or other math gurus

Just noticed this post so doing some necrobumping here... aren't you actually looking for a common tangent?

The problem doesn't seem so trivial. There is a research paper on the subject:

http://www.cs.nyu.edu/parida/res/public/tan95.ps.gz

Author:  Odinbc [ Fri May 29, 2015 5:47 pm ]
Post subject:  Re: Bezier Asymptote - Q for Ofnuts, RobA, or other math gurus

I don't have a ready answer only visualizing.
Image

Author:  lylejk [ Fri May 29, 2015 6:16 pm ]
Post subject:  Re: Bezier Asymptote - Q for Ofnuts, RobA, or other math gurus

Maybe those that are expert in circle packing can figure this one out. As for figuring out coordinates from such arbitrary points escapes me now. My brain's now too old. lol

:)

Author:  trandoductin [ Thu Nov 09, 2023 5:53 pm ]
Post subject:  Re: Bezier Asymptote - Q for Ofnuts, RobA, or other math gurus

I think I need to know this too when I wanted to do text path to stretch out in a different direction. I didn't know how to draw a line/path that would make it like this.

Author:  Tas_mania [ Thu Nov 09, 2023 8:47 pm ]
Post subject:  Re: Bezier Asymptote - Q for Ofnuts, RobA, or other math gurus

I'm amazed that 8 years ago lylejk exclaimed "My brain's now too old. lol"
Lyle if you're reading this your doing OK. Your posts are still coherent and you still hold down 3 jobs. Good on you :)

Author:  lylejk [ Thu Nov 09, 2023 9:40 pm ]
Post subject:  Re: Bezier Asymptote - Q for Ofnuts, RobA, or other math gurus

Only 2 jobs, Tas, but, have to pull 2 14 hour shifts this weekend. lolololol

Glad G'MIC made up for my brain issues. lol

:)

Author:  trandoductin [ Thu Nov 09, 2023 10:18 pm ]
Post subject:  Re: Bezier Asymptote - Q for Ofnuts, RobA, or other math gurus

ChatGPT gave derivative answers to calculate slope of bezier curve point given t but when asked if it can come up with straight formulas, it said that you'd have to use math analytical something. So I gave up querying it.

Author:  Tas_mania [ Thu Nov 09, 2023 10:30 pm ]
Post subject:  Re: Bezier Asymptote - Q for Ofnuts, RobA, or other math gurus

This thread is 11 years old and even ChatGPT can't answer it?

Lyle I hope your 14 hour shifts have long breaks LoL.

Author:  lylejk [ Thu Nov 09, 2023 11:35 pm ]
Post subject:  Re: Bezier Asymptote - Q for Ofnuts, RobA, or other math gurus

I suspect there will be few calls so there will be a lot of dead time, Tas. lol

Hope you all have a great weekend; about to soon force myself to sleep (way too early for me, but need to try; lol). :)

Author:  trandoductin [ Fri Nov 10, 2023 9:42 am ]
Post subject:  Re: Bezier Asymptote - Q for Ofnuts, RobA, or other math gurus

It answered it best it can which is giving formulas to sort of walk the paths. but no directly formula as that might not be possible.

Author:  ofnuts [ Fri Nov 10, 2023 3:41 pm ]
Post subject:  Re: Bezier Asymptote - Q for Ofnuts, RobA, or other math gurus

I think the problem is even a bit ill-defined. SaulGoode's question is about single Bezier splines, and we usually consider paths... But even then two splines can have 4 tangents:

Attachment:
SplineTangents.png
SplineTangents.png [ 34.14 KiB | Viewed 931 times ]


And even with the condition that they have a common anchor, 1) there are obvious cases with no tangents, and 2) there are cases with two tangents.

Edit: there are even cases with three tangents:

Attachment:
SplineTangents2.png
SplineTangents2.png [ 24.94 KiB | Viewed 931 times ]

Author:  trandoductin [ Sat Nov 11, 2023 10:03 am ]
Post subject:  Re: Bezier Asymptote - Q for Ofnuts, RobA, or other math gurus

wow, so many different cases, i don't even know how to solve the 1 case.

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/