From: azv Date: Wed, 19 Dec 2018 16:25:06 +0000 (+0300) Subject: [Code coverage GeomAlgoAPI]: Remove unused method hasVolume() X-Git-Tag: End2018~27 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e0692f19bd98017d204a03f4da799c9fffb66995;p=modules%2Fshaper.git [Code coverage GeomAlgoAPI]: Remove unused method hasVolume() --- diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_MakeShape.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_MakeShape.cpp index ded490e1f..f156e3d58 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_MakeShape.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_MakeShape.cpp @@ -79,20 +79,6 @@ bool GeomAlgoAPI_MakeShape::isValid() const return (aChecker.IsValid() == Standard_True); } -//================================================================================================== -bool GeomAlgoAPI_MakeShape::hasVolume() const -{ - bool hasVolume = false; - if(isValid()) { - const TopoDS_Shape& aRShape = myShape->impl(); - GProp_GProps aGProp; - BRepGProp::VolumeProperties(aRShape, aGProp); - if(aGProp.Mass() > Precision::Confusion()) - hasVolume = true; - } - return hasVolume; -} - //================================================================================================== std::shared_ptr GeomAlgoAPI_MakeShape::mapOfSubShapes() const { diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_MakeShape.h b/src/GeomAlgoAPI/GeomAlgoAPI_MakeShape.h index 7b3c78f35..86f455315 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_MakeShape.h +++ b/src/GeomAlgoAPI/GeomAlgoAPI_MakeShape.h @@ -85,9 +85,6 @@ public: /// \return true if resulting shape is valid. GEOMALGOAPI_EXPORT bool isValid() const; - /// \return true if resulting shape has volume. - GEOMALGOAPI_EXPORT bool hasVolume() const; - /// \return map of sub-shapes of the result. To be used for History keeping. GEOMALGOAPI_EXPORT std::shared_ptr mapOfSubShapes() const;