+ Add option to refine solid on sketch-based features
This commit is contained in:
@@ -160,6 +160,7 @@ App::DocumentObjectExecReturn *Pad::execute(void)
|
||||
return new App::DocumentObjectExecReturn("Pad: Resulting shape is empty");
|
||||
|
||||
// set the additive shape property for later usage in e.g. pattern
|
||||
prism = refineShapeIfActive(prism);
|
||||
this->AddShape.setValue(prism);
|
||||
|
||||
// if the sketch has a support fuse them to get one result object
|
||||
@@ -175,6 +176,7 @@ App::DocumentObjectExecReturn *Pad::execute(void)
|
||||
// lets check if the result is a solid
|
||||
if (solRes.IsNull())
|
||||
return new App::DocumentObjectExecReturn("Pad: Resulting shape is not a solid");
|
||||
solRes = refineShapeIfActive(solRes);
|
||||
this->Shape.setValue(solRes);
|
||||
} else {
|
||||
this->Shape.setValue(prism);
|
||||
|
||||
Reference in New Issue
Block a user