Fix revolution with ShapeBinder profile (#17489)

* Fix revolution with ShapeBinder profile

* Remove log level init

---------

Co-authored-by: Chris Hennes <[email protected]>
This commit is contained in:
Florian Foinant-Willig
2024-11-11 13:48:35 -03:00
committed by Adrian Insaurralde Avalos
co-authored by Chris Hennes
parent 6d68d22258
commit 5ea9a672c3
+9 -8
View File
@@ -97,13 +97,7 @@ App::DocumentObjectExecReturn* Revolution::execute()
double angle2 = Base::toRadians(Angle2.getValue());
TopoShape sketchshape;
try {
sketchshape = getTopoShapeVerifiedFace();
}
catch (const Base::Exception& e) {
return new App::DocumentObjectExecReturn(e.what());
}
TopoShape sketchshape = getTopoShapeVerifiedFace();
// if the Base property has a valid shape, fuse the AddShape into it
TopoShape base;
@@ -161,7 +155,14 @@ App::DocumentObjectExecReturn* Revolution::execute()
// Create a fresh support even when base exists so that it can be used for patterns
TopoShape result(0);
TopoShape supportface = getSupportFace();
TopoShape supportface(0);
try {
supportface = getSupportFace();
}
catch(...) {
//do nothing, null shape is handle below
}
supportface.move(invObjLoc);
if (method == RevolMethod::ToFace || method == RevolMethod::ToFirst