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
Hi,
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) ;           
}
     sewManager.Perform();
     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());
m_trimmedFaces->Add(face));
}
 
 
Latest news
  • New features to enhance the development process
  • Open CASCADE Technology 6.7.1 is available for download!
  • Open CASCADE Technology 6.7.0 is available for download!

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