X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI_Face.h;h=413c03b81eb6e3f5affb0b903a57bedbbf6c935a;hb=3d28bcbab2f3ed0e40295e64f4e836caebc19fca;hp=96d637fdea267a17252eeeef6e761a6dd2294ffd;hpb=3874b57fe5aba25ff5aee2a07654fc23c1ee8eb0;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_Face.h b/src/GeomAPI/GeomAPI_Face.h index 96d637fde..413c03b81 100644 --- a/src/GeomAPI/GeomAPI_Face.h +++ b/src/GeomAPI/GeomAPI_Face.h @@ -15,22 +15,31 @@ class GeomAPI_Pln; * \ingroup DataModel * \brief Interface to the face object */ -class GEOMAPI_EXPORT GeomAPI_Face : public GeomAPI_Shape +class GeomAPI_Face : public GeomAPI_Shape { public: /// Creation of empty (null) shape + GEOMAPI_EXPORT GeomAPI_Face(); /// Creation of face by the face-shape + GEOMAPI_EXPORT GeomAPI_Face(const std::shared_ptr& theShape); /// Returns true if the current face is geometrically equal to the given face + GEOMAPI_EXPORT virtual bool isEqual(const std::shared_ptr theFace) const; /// Returns true if the face is a planar face + GEOMAPI_EXPORT bool isPlanar() const; + /// Returns true if the face is a cylindrical face + GEOMAPI_EXPORT + bool isCylindrical() const; + /// Returns the base plane of the face (if it is planar) with location in the center of the face + GEOMAPI_EXPORT std::shared_ptr getPlane() const; };