PDN: Check both parallel and antiparallel cases before trying Revolve

This commit is contained in:
Kurt Kremitzki
2017-08-02 13:05:31 -05:00
committed by wmayer
parent 2a6205206e
commit fdf66b3e88
2 changed files with 11 additions and 7 deletions

View File

@@ -103,7 +103,11 @@ App::DocumentObjectExecReturn *Revolution::execute(void)
}
// update Axis from ReferenceAxis
updateAxis();
try {
updateAxis();
} catch (const Base::Exception& e) {
return new App::DocumentObjectExecReturn(e.what());
}
// get revolve axis
Base::Vector3d b = Base.getValue();