Page 1 of 1

Finding face by a wire

Posted: Thu Mar 03, 2022 3:12 am
by Farhat
Dear all,

I have a wire and a shell. I need to cut the face, where the wire belongs with the wire, but I don't know how to find the face.
I am stuck with the problem.
Please suggest a way to find out the face from the shell where the wire belongs to.

Thank you,
Farhat

Re: Finding face by a wire

Posted: Fri Mar 04, 2022 12:20 am
by Prashant Kande
Hello Farhat

IUVSurface_DG.GetCurveLocation() should work. Get an edge from the wire, which you are sure must be inside the face. Get its curve with IBRepEdge_DG.GetCurve().
Loop by all faces in the shell. Use IUVSurface_DG.GetCurveLocation() for IBRepFace_DG.Surface. This should identify the face.

Good luck