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 / Union two planar faces

Union two planar faces

Union two planar faces
Ata 2012/01/17 17:29
Is there a way in occ to make a union between two adjacent planar faces and get only one face?
I used "BRepAlgoAPI_Fuse" but it does not result in a single face.. it only makes a shell containing two faces..
David Egan 2012/01/17 18:46
you can merge the faces into a sewed shape and then use the ShapeTool to find the edges which are connected to only one face (ie on a boundary. )Assuming simply connected you can take these edges, and make a wire and then a planar face.

Prs3d_ShapeTool Tool(SewedShape);
     
      for (Tool.InitCurve();Tool.MoreCurve();Tool.NextCurve())
{
const TopoDS_Edge& E = Tool.GetCurve();
Standard_Integer neighbour = Tool.Neighbours();
// etc add edge to wire if neighbour ==1 ...
          
 
 
Latest news
  • Open CASCADE Technology 6.6.0 is available for download!
  • Open CASCADE Technology 6.5.5 is available for download!
  • Open CASCADE Technology 6.5.4 is available for download!

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