How do I delete face from solid

I use BRepAlgoApi_Cut to delete faces from a TopoDS_Shape. It works fine if the shape is a TopoDS_Compound. But if the shape is a solid, I cannot delete faces from solid. How do I get around this problem. I tried converting TopoDS_Solid to TopoDS_Compound but it does not work. Any ideas??

PG's picture


I am not sure this can be used

BRepOffsetAPI_MakeThickSolid class

A hollowed solid is built from an initial solid and a set of
faces on this solid, which are to be removed.


sanjaycsolanki's picture

Thanks all. I got the answer. I use TopExp to explopre the solids into faces. Then sew these faces to create a TopoDS_Shape. Now I can delete faces from the newly created shape.