Sewing faces / keep track of sewed faces

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

qa qa's picture

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

Samuel Vogel's picture

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

qa qa's picture

This piece of code does this. SewingResult shape contains result of sewing. You can use it to build map of (originalFace, sewedFace).

qa qa

Samuel Vogel's picture

Thanks a lot.

I try it...

Samuel