X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI_Face.h;h=4fb969047f3016db3b47a3ec0cd6b0d98c16c3e8;hb=HEAD;hp=4d1250d9cb4ac2b7698d41e6d333bfc69e6ca0c0;hpb=a94fc319f2aa64b43c9a73b5ff7063923648faec;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_Face.h b/src/GeomAPI/GeomAPI_Face.h index 4d1250d9c..4fb969047 100644 --- a/src/GeomAPI/GeomAPI_Face.h +++ b/src/GeomAPI/GeomAPI_Face.h @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2017 CEA/DEN, EDF R&D +// Copyright (C) 2014-2024 CEA, EDF // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -12,10 +12,9 @@ // // You should have received a copy of the GNU Lesser General Public // License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// See http://www.salome-platform.org/ or -// email : webmaster.salome@opencascade.com +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // #ifndef GeomAPI_Face_H_ @@ -24,6 +23,10 @@ #include class GeomAPI_Pln; +class GeomAPI_Sphere; +class GeomAPI_Cylinder; +class GeomAPI_Cone; +class GeomAPI_Torus; /**\class GeomAPI_Face * \ingroup DataModel @@ -44,6 +47,10 @@ public: GEOMAPI_EXPORT virtual bool isEqual(const std::shared_ptr theFace) const; + /// Returns \c true if faces have same underlying surface + GEOMAPI_EXPORT + virtual bool isSameGeometry(const std::shared_ptr theShape) const; + /// Returns true if the face is a cylindrical face GEOMAPI_EXPORT bool isCylindrical() const; @@ -51,7 +58,25 @@ 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 getPlane() const; + + /// Returns sphere if the face is based on the spherical surface + GEOMAPI_EXPORT std::shared_ptr getSphere() const; + + /// Returns cylinder if the face is based on the cylindrical surface + GEOMAPI_EXPORT std::shared_ptr getCylinder() const; + + /// Returns cone if the face is based on the conical surface + GEOMAPI_EXPORT std::shared_ptr getCone() const; + + /// Returns torus if the face is based on the toroidal surface + GEOMAPI_EXPORT std::shared_ptr getTorus() const; + + /// Return inner point in the face + GEOMAPI_EXPORT virtual std::shared_ptr middlePoint() const; }; +//! Pointer on attribute object +typedef std::shared_ptr GeomFacePtr; + #endif