theCompound = aResCompound;
}
-//=================================================================================================
-std::shared_ptr<GeomAPI_Shape> GeomAlgoAPI_Partition::make(const ListOfShape& theObjects,
- const ListOfShape& theTools)
-{
- GeomAlgoAPI_Partition aPartitionAlgo(theObjects, theTools);
- if(aPartitionAlgo.isDone() && !aPartitionAlgo.shape()->isNull() && aPartitionAlgo.isValid()) {
- return aPartitionAlgo.shape();
- }
- return std::shared_ptr<GeomAPI_Shape>();
-}
-
//=================================================================================================
GeomAlgoAPI_Partition::GeomAlgoAPI_Partition(const ListOfShape& theObjects,
const ListOfShape& theTools)
class GeomAlgoAPI_Partition : public GeomAlgoAPI_MakeShape
{
public:
- /// \brief Creates common partition operation.
- /// \param[in] theObjects the main shape.
- /// \param[in] theTools second shape.
- /// \param[in] theGroupConnectedTopology if true then result will be a compound of groups
- /// with connected topology(compsolids or compounds of shapes with shared topology).
- /// \return a solid as result of operation.
- GEOMALGOAPI_EXPORT static std::shared_ptr<GeomAPI_Shape> make(const ListOfShape& theObjects,
- const ListOfShape& theTools);
-
/// Constructor.
GEOMALGOAPI_EXPORT GeomAlgoAPI_Partition(const ListOfShape& theObjects,
const ListOfShape& theTools);