Now I want to get only the solid, but without all unnecessary faces. When using TopExp_Explorer Ex(myShape,TopAbs_SOLID) - I get the Solid and ALL other faces and edges. Is there the possibility to get only the shape without the faces in the middle of the solid?
Thanks in advance!
Markus
Svetlozar Kostadinov
2008-05-15 15:27
The solid is based on other underlying topology objects - always one closed shell, the closed shell is based on couple of faces and so on. As far as I know, the data is kept only in the underlying objects. If you just want to reject the faces, you could you TopExp_Explorer::Depth() to limit the traversal only at the desired level. Or try to use the third parameter of the constructor and set it to TopoAbs_FACE.
Regards!
Markus Litz
2008-05-26 08:21
TopExp_Explorer::Depth() sounds interesting, but I could not find any examples. Maybe someone here who has used this function in a similar context?
xiuerlee
2008-06-06 06:28
std::vector<TopoDS_Shape> theSolidVec;
for ( TopoExp_Explorer Ex(myShape, TopAbs_SOLID); Ex.More(); Ex.Next() ) {