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

Search the Forums
See All Topics

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 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