My goal is to determine if a face is a basic element (cylinder, sphere, disc, quadrilateral...).
In the case of the cylinder, the sphere or the cone, it's easy to do using the method IsKind( STANDARD_TYPE( Geom_SphericalSurface ))
But when the type of surface is planar, I don't know how to determine efficiently if the face correspond to a basic element (disc, quadrilateral, rectangle...)
For the moment I compute the number of edges in this face and the type of edges. And then I analyse these edges.
For example, the face is an entire disc if the number of edges is 2 and the types of edge is "circle".
Is it the way to do it or is it possible to do it more efficiently?
Thanks in advance