X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI_Cylinder.h;h=0bb627ef6206a4da912c8f75c6df7f9f9b085176;hb=ea593bc59e7e9461f6c4e2afd3f24d621edb1011;hp=025a8e0de6b0d33a1ea74075b72586a8152d2c63;hpb=5ff96b13035a4e95572580dbc6aa6f2c526d0a45;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_Cylinder.h b/src/GeomAPI/GeomAPI_Cylinder.h index 025a8e0de..0bb627ef6 100644 --- a/src/GeomAPI/GeomAPI_Cylinder.h +++ b/src/GeomAPI/GeomAPI_Cylinder.h @@ -1,4 +1,4 @@ -// Copyright (C) 2018-20xx CEA/DEN, EDF R&D +// Copyright (C) 2018-2019 CEA/DEN, EDF R&D // // 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_Cylinder_H_ @@ -60,6 +59,10 @@ public: /// Return \c true is the cylinder is infinite GEOMAPI_EXPORT bool isInfinite() const; + /// Returns true if cylinders have same axis and radii. + GEOMAPI_EXPORT bool isCoincident(const std::shared_ptr theCylinder, + const double theTolerance = 1.e-7); + private: double myHeight; };