PartDesign: Fix hole centered on point edge case (#21257)
* Light refactor of getTopoShape function * Fix hole edge case * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update src/Mod/Part/App/PartFeature.cpp Co-authored-by: Kacper Donat <kadet1090@gmail.com> * Update src/Mod/Part/App/PartFeature.cpp Co-authored-by: Kacper Donat <kadet1090@gmail.com> * Update src/Mod/Part/App/PartFeature.cpp Co-authored-by: Kacper Donat <kadet1090@gmail.com> * Update src/Mod/Part/App/PartFeature.cpp Co-authored-by: Kacper Donat <kadet1090@gmail.com> * Refactor simplifyCompound() * Use Base::Flags<GetShapeOption> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Shorten enum name and move it from class scope to namespace scope * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Kacper Donat <kadet1090@gmail.com>
This commit is contained in:
@@ -116,12 +116,12 @@ App::DocumentObjectExecReturn* Boolean::execute()
|
||||
std::vector<TopoShape> shapes;
|
||||
shapes.reserve(2);
|
||||
// Now, let's get the TopoDS_Shape
|
||||
shapes.push_back(Feature::getTopoShape(Base.getValue()));
|
||||
shapes.push_back(Feature::getTopoShape(Base.getValue(), ShapeOption::ResolveLink | ShapeOption::Transform));
|
||||
auto BaseShape = shapes[0].getShape();
|
||||
if (BaseShape.IsNull()) {
|
||||
throw NullShapeException("Base shape is null");
|
||||
}
|
||||
shapes.push_back(Feature::getTopoShape(Tool.getValue()));
|
||||
shapes.push_back(Feature::getTopoShape(Tool.getValue(), ShapeOption::ResolveLink | ShapeOption::Transform));
|
||||
auto ToolShape = shapes[1].getShape();
|
||||
if (ToolShape.IsNull()) {
|
||||
throw NullShapeException("Tool shape is null");
|
||||
|
||||
Reference in New Issue
Block a user