Curve on face intersection segments

Technical discussions
Post Reply
Mellow Tim
Posts: 1
Joined: Thu Feb 17, 2022 4:15 am

Curve on face intersection segments

Post by Mellow Tim »

I have noticed that IUVSurface_DG does nearly what I want, but it does it for a curve and a surface, I need the intersection segments between a face and a curve. I know that the curve lies wholly on the face.
Please help
Thanks

Prashant Kande
Posts: 121
Joined: Mon Apr 04, 2016 4:55 am

Re: Curve on face intersection segments

Post by Prashant Kande »

Hello

You need to work in the 2d trimmed rectangle of uv parameters domain. Pcurves for each edge define a curved polygon in uv space.
ICurve2d_DG IUVSurface_DG.GetCurveUVProjection(ICurve_DG curve) will return 2d representation of your curve in the same uv space.

So you problem is reduced to calculating ranges of your curve which are inside of the curved polygon of pcurves. This can be done using ICurve2d_DG.GetIntersection*() methods.

This is a bit of manual work unfortunately. We are planning (high priority) to make it much nicer in future versions.

Regards

Post Reply