From 1774502954f816c97900b232d5abbf1deb31ed4d Mon Sep 17 00:00:00 2001 From: Christopher Lackner Date: Fri, 31 Aug 2018 11:11:12 +0200 Subject: [PATCH] change startpoint for sphere meshing so that it's less likely to hit a touching point --- libsrc/csg/algprim.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libsrc/csg/algprim.cpp b/libsrc/csg/algprim.cpp index 4636453b..9391066b 100644 --- a/libsrc/csg/algprim.cpp +++ b/libsrc/csg/algprim.cpp @@ -557,7 +557,8 @@ namespace netgen Point<3> Sphere :: GetSurfacePoint () const { - return c + Vec<3> (r, 0, 0); + // if two spheres touch at exactly that point meshing fails. + return c + Vec<3> (0.12345, 0.54321, 0.8304715488203073); }