X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FFeaturesPlugin%2FFeaturesPlugin_Partition.h;h=aee69380b230c82534e5913aac6f9fc85e18e463;hb=68c2f3e4f76b06d3159ab313088b6f093dc304ea;hp=5db7fc5afbd81a419a1b29a1986149bc72bdb1bb;hpb=87b6a30a3afb8fb32e7e43ade8d9c947d9eb1684;p=modules%2Fshaper.git diff --git a/src/FeaturesPlugin/FeaturesPlugin_Partition.h b/src/FeaturesPlugin/FeaturesPlugin_Partition.h old mode 100755 new mode 100644 index 5db7fc5af..aee69380b --- a/src/FeaturesPlugin/FeaturesPlugin_Partition.h +++ b/src/FeaturesPlugin/FeaturesPlugin_Partition.h @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2017 CEA/DEN, EDF R&D +// Copyright (C) 2014-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,16 +12,15 @@ // // 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 FeaturesPlugin_Partition_H_ #define FeaturesPlugin_Partition_H_ -#include "FeaturesPlugin.h" +#include "FeaturesPlugin_VersionedBoolean.h" #include #include @@ -30,7 +29,7 @@ /// \ingroup Plugins /// \brief Feature for applying of Partition operations on Shapes. Partition makes conjunctional /// faces of solids as shared. The result of partitions is a compsolid. -class FeaturesPlugin_Partition : public ModelAPI_Feature +class FeaturesPlugin_Partition : public FeaturesPlugin_VersionedBoolean { public: /// Feature kind. @@ -70,6 +69,15 @@ private: const GeomShapePtr theResultShape, const std::shared_ptr theMakeShape, const int theIndex = 0); + + /// Cut all of unused subs of compsolids by the full compsolid of the first selected object, + /// and vice versa, cut all objects of Partition by not used subs of the first selected object. + /// Store results of operation to the separated lists of shapes. + bool cutSubs(ObjectHierarchy& theHierarchy, + ListOfShape& theUsed, + ListOfShape& theNotUsed, + std::shared_ptr& theMakeShapeList, + std::string& theError); }; #endif