PD: Combine onlyHaveRefined and onlyHasToRefine

Co-authored-by: Florian Foinant-Willig <FlachyJoe@users.noreply.github.com>
This commit is contained in:
Chris Hennes
2025-02-16 11:25:45 -06:00
committed by GitHub
parent cb93a4ae18
commit a2cef23dbd

View File

@@ -58,7 +58,7 @@ FeatureRefine::FeatureRefine()
this->Refine.setValue(hGrp->GetBool("RefineModel", true));
}
bool FeatureRefine::onlyHasToRefine() const
bool FeatureRefine::onlyHaveRefined()
{
if (!Refine.isTouched()) {
return false;
@@ -75,20 +75,10 @@ bool FeatureRefine::onlyHasToRefine() const
return false;
}
}
TopoShape result = refineShapeIfActive(rawShape);
Shape.setValue(result);
return true;
}
bool FeatureRefine::onlyHaveRefined()
{
if (onlyHasToRefine()) {
TopoShape result = refineShapeIfActive(rawShape);
Shape.setValue(result);
return true;
}
return false;
}
TopoShape FeatureRefine::refineShapeIfActive(const TopoShape& oldShape,
const RefineErrorPolicy onError) const
{