It is currently Mon Jul 01, 2024 2:48 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 13 posts ] 
Author Message
 Post subject: Bezier Asymptote - Q for Ofnuts, RobA, or other math gurus
PostPosted: Sun Apr 08, 2012 4:14 pm  (#1) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
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 2915 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.

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Bezier Asymptote - Q for Ofnuts, RobA, or other math gurus
PostPosted: Fri May 29, 2015 5:03 pm  (#2) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4752
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

_________________
Image


Top
 Post subject: Re: Bezier Asymptote - Q for Ofnuts, RobA, or other math gurus
PostPosted: Fri May 29, 2015 5:47 pm  (#3) 
Offline
Global Moderator
User avatar

Joined: Nov 16, 2011
Posts: 5128
Location: Metro Vancouver, BC
I don't have a ready answer only visualizing.
Image

_________________
Image
Gimp 2.8.18, Linux, median user
Gimp Chat Tutorials Index
Spirit Bear (Kermode)


Top
 Post subject: Re: Bezier Asymptote - Q for Ofnuts, RobA, or other math gurus
PostPosted: Fri May 29, 2015 6:16 pm  (#4) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12531
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

:)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: Bezier Asymptote - Q for Ofnuts, RobA, or other math gurus
PostPosted: Thu Nov 09, 2023 5:53 pm  (#5) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4000
Location: Canada
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.

_________________
TinT


Top
 Post subject: Re: Bezier Asymptote - Q for Ofnuts, RobA, or other math gurus
PostPosted: Thu Nov 09, 2023 8:47 pm  (#6) 
Offline
GimpChat Member
User avatar

Joined: Nov 04, 2015
Posts: 1365
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 :)


Last edited by Tas_mania on Thu Nov 09, 2023 10:08 pm, edited 1 time in total.

Top
 Post subject: Re: Bezier Asymptote - Q for Ofnuts, RobA, or other math gurus
PostPosted: Thu Nov 09, 2023 9:40 pm  (#7) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12531
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

:)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: Bezier Asymptote - Q for Ofnuts, RobA, or other math gurus
PostPosted: Thu Nov 09, 2023 10:18 pm  (#8) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4000
Location: Canada
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.

_________________
TinT


Top
 Post subject: Re: Bezier Asymptote - Q for Ofnuts, RobA, or other math gurus
PostPosted: Thu Nov 09, 2023 10:30 pm  (#9) 
Offline
GimpChat Member
User avatar

Joined: Nov 04, 2015
Posts: 1365
This thread is 11 years old and even ChatGPT can't answer it?

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


Top
 Post subject: Re: Bezier Asymptote - Q for Ofnuts, RobA, or other math gurus
PostPosted: Thu Nov 09, 2023 11:35 pm  (#10) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12531
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). :)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: Bezier Asymptote - Q for Ofnuts, RobA, or other math gurus
PostPosted: Fri Nov 10, 2023 9:42 am  (#11) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4000
Location: Canada
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.

_________________
TinT


Top
 Post subject: Re: Bezier Asymptote - Q for Ofnuts, RobA, or other math gurus
PostPosted: Fri Nov 10, 2023 3:41 pm  (#12) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4752
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 920 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 920 times ]

_________________
Image


Top
 Post subject: Re: Bezier Asymptote - Q for Ofnuts, RobA, or other math gurus
PostPosted: Sat Nov 11, 2023 10:03 am  (#13) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4000
Location: Canada
wow, so many different cases, i don't even know how to solve the 1 case.

_________________
TinT


Top
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts math map extras

2

No new posts Problem Solved Math Map 32 bit vs GMIC 64 bit

1

No new posts Attachment(s) math tools like union and intersect?

7

No new posts Distort and RobA's Chisel script

2

No new posts Attachment(s) Outline Layer Contents by Ofnuts

2



* Login  



Powered by phpBB3 © phpBB Group