Salome HOME
Correct case when the weak-named attribute is dumped in Geom mode: geometrical repres...
[modules/shaper.git] / src / GeomAPI / GeomAPI_Face.h
index 477b91b9007c52a6674ddfab2bab306afae58ff3..c50e980d03e55e67be44bdd12626504e53b6d3e2 100644 (file)
 #include <GeomAPI_Shape.h>
 
 class GeomAPI_Pln;
+class GeomAPI_Sphere;
+class GeomAPI_Cylinder;
+class GeomAPI_Cone;
+class GeomAPI_Torus;
 
 /**\class GeomAPI_Face
 * \ingroup DataModel
@@ -51,6 +55,21 @@ public:
   /// Returns the base plane of the face (if it is planar) with location in the center of the face
   GEOMAPI_EXPORT
   std::shared_ptr<GeomAPI_Pln> getPlane() const;
+
+  /// Returns sphere if the face is based on the spherical surface
+  GEOMAPI_EXPORT std::shared_ptr<GeomAPI_Sphere> getSphere() const;
+
+  /// Returns cylinder if the face is based on the cylindrical surface
+  GEOMAPI_EXPORT std::shared_ptr<GeomAPI_Cylinder> getCylinder() const;
+
+  /// Returns cone if the face is based on the conical surface
+  GEOMAPI_EXPORT std::shared_ptr<GeomAPI_Cone> getCone() const;
+
+  /// Returns torus if the face is based on the toroidal surface
+  GEOMAPI_EXPORT std::shared_ptr<GeomAPI_Torus> getTorus() const;
+
+  /// Return inner point in the face
+  GEOMAPI_EXPORT virtual std::shared_ptr<GeomAPI_Pnt> middlePoint() const;
 };
 
 //! Pointer on attribute object