From 00d6c94bd9227bbe80f5a7d9e94f36acf2384889 Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Wed, 6 Jul 2022 12:49:00 +0200 Subject: [PATCH] Consistent parameters for CSGeometry::FindIdenticSurfaces also don't call it in Draw() (already done in constructor) --- libsrc/csg/csgeom.cpp | 2 +- libsrc/csg/python_csg.cpp | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/libsrc/csg/csgeom.cpp b/libsrc/csg/csgeom.cpp index 45c76170..82102118 100644 --- a/libsrc/csg/csgeom.cpp +++ b/libsrc/csg/csgeom.cpp @@ -417,7 +417,7 @@ namespace netgen & identpoints & boundingbox & isidenticto & ideps & filename & spline_surfaces & splinecurves2d & splinecurves3d & surf2prim; if(archive.Input()) - FindIdenticSurfaces(1e-6); + FindIdenticSurfaces(1e-8 * MaxSize()); } void CSGeometry :: SaveSurfaces (ostream & out) const diff --git a/libsrc/csg/python_csg.cpp b/libsrc/csg/python_csg.cpp index 676e249a..12545eee 100644 --- a/libsrc/csg/python_csg.cpp +++ b/libsrc/csg/python_csg.cpp @@ -676,7 +676,6 @@ However, when r = 0, the top part becomes a point(tip) and meshing fails! .def("Draw", FunctionPointer ([] (shared_ptr self) { - self->FindIdenticSurfaces(1e-6); self->CalcTriangleApproximation(0.01, 20); ng_geometry = self; })