PartDesign: decouple refine and other geometric computation (#17008)

This commit is contained in:
Florian Foinant-Willig
2024-12-02 17:57:30 +01:00
committed by GitHub
parent e5c2c81685
commit 70184ba59d
14 changed files with 141 additions and 5 deletions

View File

@@ -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);
}