Thu, 11/17/2016 - 14:10
Forums:
Hello,
I have a question regarding the sewing of faces to a (manifold) shell. How can I determine the matching of the initial faces i added to sew and the faces of the resulting shell. If I just loop over the faces of the shell with an explorer, the order of faces (in the ordering of adding the faces to the brepbuilderapi_sewing) is not retained in all cases. How can I determine the assignment of the original faces to the faces of the resulting shell?
Thanks,
Samuel
Thu, 11/17/2016 - 14:30
Hello, Samuel
you can use ModifiedSubShape(originalShape) method. If it returns empty shape then sewer don't modified originalShape.
TopoDS_Shape F = Sewer.ModifiedSubShape(originalShape);
const TopoDS_Shape& SewingResult = F.IsNull()? originalShape: F;
qa qa
Thu, 11/17/2016 - 14:45
Thanks a lot.
Ok. Then I get the the information if it was modified. But do you have an idea how I still can get the matching of the original faces to the sewed faces (my original problem)?
Samuel
Thu, 11/17/2016 - 14:57
This piece of code does this. SewingResult shape contains result of sewing. You can use it to build map of (originalFace, sewedFace).
qa qa
Thu, 11/17/2016 - 15:05
Thanks a lot.
I try it...
Samuel