Non-manifold check for shape

Hi
How to check if a shape is non-manifold or not?
For example, the resulting shape after a Boolean function like BRepAlgoAPI_Cut.

Thanks.

Sean

Cauchy Ding's picture

Hi Sean,

I use TopExp::MapShapesAndAncestors(Shape, TopAbs_EDGE, TopAbs_FACE, TopTools_IndexedDataMapOfShapeListOfShape) to get edge/face relationship. If the shape is in non-manifod mode, one edge must be shared by more than 2 difference faces.

Ding