From: mpv Date: Wed, 30 Sep 2015 12:32:44 +0000 (+0300) Subject: Remove obsolete methods X-Git-Tag: V_1.4.0_demo1~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=351e803a377207a8a974b55fb2ab42a21e05789e;p=modules%2Fshaper.git Remove obsolete methods --- diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_Boolean.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_Boolean.cpp index e3f7141be..709031f3b 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_Boolean.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_Boolean.cpp @@ -16,39 +16,6 @@ #include #include -//================================================================================================= -std::shared_ptr GeomAlgoAPI_Boolean::makeCut(const ListOfShape& theObjects, - const ListOfShape& theTools) -{ - GeomAlgoAPI_Boolean aBoolAlgo(theObjects, theTools, BOOL_CUT); - if(aBoolAlgo.isDone() && !aBoolAlgo.shape()->isNull() && aBoolAlgo.isValid()) { - return aBoolAlgo.shape(); - } - return std::shared_ptr(); -} - -//================================================================================================= -std::shared_ptr GeomAlgoAPI_Boolean::makeFuse(const ListOfShape& theObjects, - const ListOfShape& theTools) -{ - GeomAlgoAPI_Boolean aBoolAlgo(theObjects, theTools, BOOL_FUSE); - if(aBoolAlgo.isDone() && !aBoolAlgo.shape()->isNull() && aBoolAlgo.isValid()) { - return aBoolAlgo.shape(); - } - return std::shared_ptr(); -} - -//================================================================================================= -std::shared_ptr GeomAlgoAPI_Boolean::makeCommon(const ListOfShape& theObjects, - const ListOfShape& theTools) -{ - GeomAlgoAPI_Boolean aBoolAlgo(theObjects, theTools, BOOL_COMMON); - if(aBoolAlgo.isDone() && !aBoolAlgo.shape()->isNull() && aBoolAlgo.isValid()) { - return aBoolAlgo.shape(); - } - return std::shared_ptr(); -} - //================================================================================================= GeomAlgoAPI_Boolean::GeomAlgoAPI_Boolean(const ListOfShape& theObjects, const ListOfShape& theTools, diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_Boolean.h b/src/GeomAlgoAPI/GeomAlgoAPI_Boolean.h index 86e6dc9b8..5c2059b88 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_Boolean.h +++ b/src/GeomAlgoAPI/GeomAlgoAPI_Boolean.h @@ -31,29 +31,6 @@ public: }; public: - /** \brief Creates cut boolean operation. - * \param[in] theObjects the main shape. - * \param[in] theTools toole shape for boolean. - * \return a solid or compound of solids as result of operation. - */ - GEOMALGOAPI_EXPORT static std::shared_ptr makeCut(const ListOfShape& theObjects, - const ListOfShape& theTools); - - /** \brief Creates fuse boolean operation. - * \param[in] theObjects the main shape. - * \param[in] theTools second shape. - * \return a solid as result of operation. - */ - GEOMALGOAPI_EXPORT static std::shared_ptr makeFuse(const ListOfShape& theObjects, - const ListOfShape& theTools); - - /** \brief Creates common boolean operation. - * \param[in] theObjects the main shape. - * \param[in] theTools second shape. - * \return a solid as result of operation. - */ - GEOMALGOAPI_EXPORT static std::shared_ptr makeCommon(const ListOfShape& theObjects, - const ListOfShape& theTools); /// Constructor. GEOMALGOAPI_EXPORT GeomAlgoAPI_Boolean(const ListOfShape& theObjects,