}
enum {
- BOOL_FUSE,
BOOL_CUT,
+ BOOL_FUSE,
BOOL_COMMON
};
/// Use plugin manager for features creation
FeaturesPlugin_Extrusion();
-
+private:
/// Load Naming data structure of the feature to the document
void LoadNamingDS(GeomAlgoAPI_Extrusion& theFeature, boost::shared_ptr<ModelAPI_ResultBody> theResultBody,
boost::shared_ptr<GeomAPI_Shape> theBasis,
#include <TopExp_Explorer.hxx>
#include <GeomAlgoAPI_DFLoader.h>
-#define FUSE 0
-#define CUT 1
-#define COMMON 2
boost::shared_ptr<GeomAPI_Shape> GeomAlgoAPI_Boolean::makeCut(
boost::shared_ptr<GeomAPI_Shape> theShape,
boost::shared_ptr<GeomAPI_Shape> theTool)
myMkShape = new GeomAlgoAPI_MakeShape (mkFuse);
aResult = mkFuse->Shape();//GeomAlgoAPI_DFLoader::refineResult(aFuse->Shape());
}
+ break;
}
case BOOL_CUT:
{
myMkShape = new GeomAlgoAPI_MakeShape (mkCut);
aResult = mkCut->Shape();
}
+ break;
}
case BOOL_COMMON:
{
myMkShape = new GeomAlgoAPI_MakeShape (mkCom);
aResult = mkCom->Shape();
}
+ break;
}
}
if(myDone) {
boost::shared_ptr<GeomAPI_Shape> theTool);
enum {
- BOOL_FUSE,
BOOL_CUT,
+ BOOL_FUSE,
BOOL_COMMON
};
/// Constructor
ListOfShape aList;
boost::shared_ptr<GeomAPI_Shape> aRShape(new GeomAPI_Shape());
aRShape->setImpl((new TopoDS_Shape(aRoot)));
- theMS->generated(aRShape, aList);
+ theMS->modified(aRShape, aList);
std::list<boost::shared_ptr<GeomAPI_Shape> >::const_iterator anIt = aList.begin(), aLast = aList.end();
for (; anIt != aLast; anIt++) {
TopoDS_Shape aNewShape = (*anIt)->impl<TopoDS_Shape>();