//=================================================================================================
GeomAlgoAPI_MakeShapeCustom::GeomAlgoAPI_MakeShapeCustom()
-: GeomAlgoAPI_MakeShape()
{}
//=================================================================================================
void GeomAlgoAPI_MakeShapeCustom::setResult(const std::shared_ptr<GeomAPI_Shape> theShape)
{
- myShape = theShape;
+ setShape(theShape);
}
//=================================================================================================
return myDeleted.bind(theShape, theShape);
}
-//=================================================================================================
-const std::shared_ptr<GeomAPI_Shape> GeomAlgoAPI_MakeShapeCustom::shape() const
-{
- return myShape;
-}
-
//=================================================================================================
void GeomAlgoAPI_MakeShapeCustom::generated(const std::shared_ptr<GeomAPI_Shape> theShape,
ListOfShape& theHistory)
{
ListOfShape aGenerated;
- myGenerated.find(theShape, aGenerated);
- theHistory.insert(theHistory.end(), aGenerated.begin(), aGenerated.end());
+ if(myGenerated.find(theShape, aGenerated)) {
+ theHistory.insert(theHistory.end(), aGenerated.begin(), aGenerated.end());
+ }
}
//=================================================================================================
ListOfShape& theHistory)
{
ListOfShape aModified;
- myModified.find(theShape, aModified);
- theHistory.insert(theHistory.end(), aModified.begin(), aModified.end());
+ if(myModified.find(theShape, aModified)) {
+ theHistory.insert(theHistory.end(), aModified.begin(), aModified.end());
+ }
}
//=================================================================================================