Bspline curves intersection

Technical discussions
Post Reply
Najib Basbous
Posts: 1
Joined: Wed Oct 21, 2020 2:42 am

Bspline curves intersection

Post by Najib Basbous »

Hello all

I have two bspline curves as IBSplineCurve_DG. Is there a way to check if they intersect and get the intersection point(s) ?

Thanks in advance

Eric Holt
Posts: 3
Joined: Wed Jul 09, 2014 11:56 pm

Re: Bspline curves intersection

Post by Eric Holt »

Hi Najib

You need to cast IBSplineCurve_DG to ICurve_DG for both and use ICurve_DG.GetIntersection(). If they do not intersect the return will be zero. If they do, the haveTangentialIntersection flag will tell you about tangential intersection.
ICurve_DG.GetIntersection1() gives more information about the later case.

Eric

Post Reply