From 1c77ebdeb084a036694ddac46a7eb39d30f25c45 Mon Sep 17 00:00:00 2001 From: "Zheng, Lei" Date: Mon, 29 Jan 2024 11:46:15 -0500 Subject: [PATCH] transfer in FeaturePartBoolean --- src/Mod/Part/App/FeaturePartBoolean.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/Mod/Part/App/FeaturePartBoolean.cpp b/src/Mod/Part/App/FeaturePartBoolean.cpp index 4cf3d561f3..8afda33b11 100644 --- a/src/Mod/Part/App/FeaturePartBoolean.cpp +++ b/src/Mod/Part/App/FeaturePartBoolean.cpp @@ -113,7 +113,7 @@ App::DocumentObjectExecReturn *Boolean::execute() return new App::DocumentObjectExecReturn("Resulting shape is invalid"); } } - +#ifndef FC_USE_TNP_FIX std::vector history; history.push_back(buildHistory(*mkBool.get(), TopAbs_FACE, resShape, BaseShape)); history.push_back(buildHistory(*mkBool.get(), TopAbs_FACE, resShape, ToolShape)); @@ -135,6 +135,14 @@ App::DocumentObjectExecReturn *Boolean::execute() this->Shape.setValue(resShape); this->History.setValues(history); return App::DocumentObject::StdReturn; +#else + TopoShape res(0,getDocument()->getStringHasher()); + res.makeElementShape(*mkBool,shapes,opCode()); + if (this->Refine.getValue()) + res = res.makeElementRefine(); + this->Shape.setValue(res); + return Part::Feature::execute(); +#endif } catch (...) { return new App::DocumentObjectExecReturn("A fatal error occurred when running boolean operation");