For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings


Need to speed up your development?
Have a look at our:

Samples & Tools


Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

BRepBuilderAPI_Sewing issue

Rahul Galgali's picture

I have list of face not sequentially arranged but geometrically they are adjacent to each other.
Does BRepBuilderAPI_Sewing will give me sewed faces after passing the faces?

Here is a code,

TopoDS_Shape shape = m_readerControl->OneShape();
TopExp_Explorer expFace;
expFace.Init(shape.Oriented(TopAbs_FORWARD), TopAbs_FACE);
BRepBuilderAPI_Sewing sewManager(1.0e-06);

for ( ;expFace.More(); expFace.Next())
TopoDS_Face face = TopoDS::Face(expFace.Current());
// create IGESTrimFace from TopoDS_Face and add it to the list
sewManager.Add(face) ;
TopoDS_Shape sewedShape = sewManager.SewedShape();

TopExp_Explorer expFaceSewing;
expFaceSewing.Init(sewedShape.Oriented(TopAbs_FORWARD), TopAbs_FACE);
for ( ;expFaceSewing.More(); expFaceSewing.Next())
TopoDS_Face face = TopoDS::Face(expFaceSewing.Current());