mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 21:10:33 +05:00
UnifySameDomain is good for 2D, needs some more exploration
This commit is contained in:
parent
0de8254ea2
commit
73f387a7ed
@ -371,12 +371,12 @@ DLL_HEADER void ExportNgOCCShapes(py::module &m)
|
|||||||
|
|
||||||
.def("__add__", [] (const TopoDS_Shape & shape1, const TopoDS_Shape & shape2) {
|
.def("__add__", [] (const TopoDS_Shape & shape1, const TopoDS_Shape & shape2) {
|
||||||
auto fused = BRepAlgoAPI_Fuse(shape1, shape2).Shape();
|
auto fused = BRepAlgoAPI_Fuse(shape1, shape2).Shape();
|
||||||
|
return fused;
|
||||||
// make one face when fusing in 2D
|
// make one face when fusing in 2D
|
||||||
// from https://gitlab.onelab.info/gmsh/gmsh/-/issues/627
|
// from https://gitlab.onelab.info/gmsh/gmsh/-/issues/627
|
||||||
ShapeUpgrade_UnifySameDomain unify(fused, true, true, true);
|
// ShapeUpgrade_UnifySameDomain unify(fused, true, true, true);
|
||||||
unify.Build();
|
// unify.Build();
|
||||||
return unify.Shape();
|
// return unify.Shape();
|
||||||
})
|
})
|
||||||
|
|
||||||
.def("__mul__", [] (const TopoDS_Shape & shape1, const TopoDS_Shape & shape2) {
|
.def("__mul__", [] (const TopoDS_Shape & shape1, const TopoDS_Shape & shape2) {
|
||||||
|
Loading…
Reference in New Issue
Block a user