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
Finding face by a wire
-
- Posts: 121
- Joined: Mon Apr 04, 2016 4:55 am
Re: Finding face by a wire
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
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