From 73f387a7ed158ab969dc1a934e8d46eeecaee8a0 Mon Sep 17 00:00:00 2001 From: Joachim Schoeberl Date: Wed, 11 Aug 2021 11:00:05 +0200 Subject: [PATCH] UnifySameDomain is good for 2D, needs some more exploration --- libsrc/occ/python_occ_shapes.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libsrc/occ/python_occ_shapes.cpp b/libsrc/occ/python_occ_shapes.cpp index 1629edcc..5377876e 100644 --- a/libsrc/occ/python_occ_shapes.cpp +++ b/libsrc/occ/python_occ_shapes.cpp @@ -371,12 +371,12 @@ DLL_HEADER void ExportNgOCCShapes(py::module &m) .def("__add__", [] (const TopoDS_Shape & shape1, const TopoDS_Shape & shape2) { auto fused = BRepAlgoAPI_Fuse(shape1, shape2).Shape(); - + return fused; // make one face when fusing in 2D // from https://gitlab.onelab.info/gmsh/gmsh/-/issues/627 - ShapeUpgrade_UnifySameDomain unify(fused, true, true, true); - unify.Build(); - return unify.Shape(); + // ShapeUpgrade_UnifySameDomain unify(fused, true, true, true); + // unify.Build(); + // return unify.Shape(); }) .def("__mul__", [] (const TopoDS_Shape & shape1, const TopoDS_Shape & shape2) {