Finding face by a wire

Technical discussions
Post Reply
Farhat
Posts: 1
Joined: Thu Mar 03, 2022 3:06 am

Finding face by a wire

Post 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

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

Re: Finding face by a wire

Post 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

Post Reply