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
Shape factory
Shape gallery
What's new
System requirements
Download Center
Public license
Getting started
Open Source community
Training and e-learning
A-la Carte Support
Value-added software
Complementary Components
Customer Corner
Company Profile
Marketing Materials
Contact Us
Home / Developer Corner / Forums / Usage issues / Create solid from 2 faces

Create solid from 2 faces

Create solid from 2 faces
Vyacheslav Belkin 2013/02/28 22:30
I have 2 arrays of points that are flat closed profiles. I need to create solid with that profiles as bottom and top faces.

So I create 2 BRepBuilderAPI_MakePolygon's, added points to them, closed them, created TopoDS_Face using BRepFill::Shell(poly.Wire(), poly1.Wire()) and saved it in *.step.

It works correctly, but I got shell without "body" (only side walls), not solid. Code is attached (code.txt).
If I use BRepFill::Face(), it is empty and it cannot be saved (exception is occured).

How can I create closed solid in this case?
Thanks beforehand.
You have to be logged in to download the attached file
Vyacheslav Belkin 2013/03/01 13:31
Solved by using this code:

BRepOffsetAPI_ThruSections sect(Standard_True);
Latest news
  • Open CASCADE Technology 6.7.1 is available for download!
  • Open CASCADE Technology 6.7.0 is available for download!
  • Open CASCADE Technology 6.6.0 is available for download!

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