PartDesign: decouple refine and other geometric computation (#17008)
This commit is contained in:
committed by
GitHub
parent
e5c2c81685
commit
70184ba59d
@@ -65,6 +65,12 @@ short Fillet::mustExecute() const
|
||||
|
||||
App::DocumentObjectExecReturn *Fillet::execute()
|
||||
{
|
||||
if (onlyHasToRefine()){
|
||||
TopoShape result = refineShapeIfActive(rawShape);
|
||||
Shape.setValue(result);
|
||||
return App::DocumentObject::StdReturn;
|
||||
}
|
||||
|
||||
Part::TopoShape baseShape;
|
||||
try {
|
||||
baseShape = getBaseTopoShape();
|
||||
@@ -110,6 +116,8 @@ App::DocumentObjectExecReturn *Fillet::execute()
|
||||
}
|
||||
|
||||
if (!failed) {
|
||||
// store shape before refinement
|
||||
this->rawShape = shape;
|
||||
shape = refineShapeIfActive(shape);
|
||||
shape = getSolid(shape);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user