How to classify Linear, surfacic or volumic Shapes

hy,
I want to distinguish linear, surfacic and volumic shapes, ie I have a shape and I want to know if it's a linear or surfacic or volumic object. I have already tried to distinguish those three kinds of shape, using the three functions: VolumicProperties, LinearProperties and SurfacicProperties,but I did'nt find a criteria to clealry distinguish the three cases (Mass is not enough).

How can I solve this problem?

thanks!

Stephane Routelous's picture

well, you can use TopoDS_Shape::ShapeType
if it is an edge, it's linear;if it is a face, it is surfacic, if it is a solid, it's a volume, and for compound, shell, compsolid, it depends how you want to handle them.

HTH