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

Search the Forums
See All Topics
Open CASCADEShowroomGet it!Developer CornerSupport and ProductsAbout us
Technical overview
Areas of use
Advantages
FAQ
Screenshots
Shape factory
Shape gallery
Demonstrations
What's new
System requirements
Download Center
Public license
Documentation
Getting started
Forums
Open Source community
Training and e-learning
A-la Carte Support
Value-added software
Complementary Components
Customer Corner
Company Profile
Marketing Materials
Contact Us
News
Home / Developer Corner / Forums / Usage issues / BRepBuilderAPI_Sewing issue

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
  • Open CASCADE Technology 6.7.0 is available for download!
  • Open CASCADE Technology 6.6.0 is available for download!
  • Open CASCADE Technology 6.5.5 is available for download!

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