| 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);
sect.AddWire(poly.Wire());
sect.AddWire(poly1.Wire()); |
 |
| | | |