Open CASCADE, the 3D modelling kernel
3D modeling & numerical simulation

Search the Forums
See All Topics

BRepBuilderAPI_Sewing issue

BRepBuilderAPI_Sewing issue
Rahul Galgali 2012/06/07 12:20
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());
Latest news
  • Open CASCADE CAD Assistant for iOS platform is available!
  • Open CASCADE Technology 6.9.0 is available for download!
  • JT Assistant for Android

  • © OPEN CASCADE 2000 - 2015  |  Search  |  Contacts   |  Site map