Page 1 of 1

Bspline curves intersection

Posted: Wed Oct 21, 2020 2:47 am
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

Re: Bspline curves intersection

Posted: Thu Oct 22, 2020 3:44 am
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