Determine a Shape TypeType

Hello all,

I have some shapes such as Cones, Cylinders, and Spheres. How do I determine them? I know for Points, Edges, and so on I can use ShapeType() to find what they are, but can not find the same for above shapes. can anyone help me please

Thanks in advance

François Lauzon's picture

For cones, cylinders and spheres, you could first check ShapeType() so you find TopAbs_FACE, then use BRepAdaptor_Surface aSurface(yourTopoDS_Face);
aSurface.GetType() to check your face type.

Good Luck,
Francois.

RicePotato2006's picture

Hi Francois

It works well, Thanks.
What about vectors, Slots. and Polylines?
Are there also thoes tpyes some where in OCC too?