fixes #0002512 Allow multi-face part design tools
This commit is contained in:
@@ -213,7 +213,7 @@ App::DocumentObjectExecReturn *Pad::execute(void)
|
||||
|
||||
if (!base.IsNull()) {
|
||||
// auto obj = getDocument()->addObject("Part::Feature", "prism");
|
||||
// static_cast<Part::Feature*>(obj)->Shape.setValue(prism);
|
||||
// static_cast<Part::Feature*>(obj)->Shape.setValue(getSolid(prism));
|
||||
// Let's call algorithm computing a fuse operation:
|
||||
BRepAlgoAPI_Fuse mkFuse(base, prism);
|
||||
// Let's check if the fusion has been successful
|
||||
@@ -226,9 +226,9 @@ App::DocumentObjectExecReturn *Pad::execute(void)
|
||||
if (solRes.IsNull())
|
||||
return new App::DocumentObjectExecReturn("Pad: Resulting shape is not a solid");
|
||||
solRes = refineShapeIfActive(solRes);
|
||||
this->Shape.setValue(solRes);
|
||||
this->Shape.setValue(getSolid(solRes));
|
||||
} else {
|
||||
this->Shape.setValue(prism);
|
||||
this->Shape.setValue(getSolid(prism));
|
||||
}
|
||||
|
||||
return App::DocumentObject::StdReturn;
|
||||
|
||||
Reference in New Issue
Block a user