This commit adds getShape and setShape to TopoShape

This commit is contained in:
Wolfgang E. Sanyer
2016-08-06 23:42:55 +02:00
committed by wmayer
parent 5a30a43862
commit 7f4a437cc2
54 changed files with 400 additions and 372 deletions
+2 -2
View File
@@ -80,7 +80,7 @@ App::DocumentObjectExecReturn *Boolean::execute(void)
// Get the base shape to operate on
Part::TopoShape baseTopShape = baseFeature->Shape.getShape();
if (baseTopShape._Shape.IsNull())
if (baseTopShape.getShape().IsNull())
return new App::DocumentObjectExecReturn("Cannot do boolean operation with invalid base shape");
//get the body this boolean feature belongs to
@@ -100,7 +100,7 @@ App::DocumentObjectExecReturn *Boolean::execute(void)
trf.SetTranslationPart(gp_Vec(place.getPosition().x,place.getPosition().y,place.getPosition().z));
TopLoc_Location objLoc(trf);
TopoDS_Shape result = baseTopShape._Shape;
TopoDS_Shape result = baseTopShape.getShape();
result.Move(objLoc);
// Get the operation type