From ba0319d388c9803998977b5ff1dafc08b3411cd7 Mon Sep 17 00:00:00 2001 From: Joachim Schoeberl Date: Thu, 1 Sep 2011 07:35:06 +0000 Subject: [PATCH] special point 0-point fixes --- libsrc/csg/specpoin.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libsrc/csg/specpoin.cpp b/libsrc/csg/specpoin.cpp index 2313fc3f..f4c5f946 100644 --- a/libsrc/csg/specpoin.cpp +++ b/libsrc/csg/specpoin.cpp @@ -16,7 +16,6 @@ */ -// #undef DEVELOP // #define DEVELOP @@ -279,7 +278,7 @@ namespace netgen dynamic_cast (geometry->GetSurface(locsurf[k2])), dynamic_cast (geometry->GetSurface(locsurf[k3])), pts); - + for (int j = 0; j < pts.Size(); j++) if (Dist (pts[j], box.Center()) < box.Diam()/2) { @@ -645,7 +644,7 @@ namespace netgen { box.GetSubBox (i, sbox); sbox.Increase (1e-4 * sbox.Diam()); - + sbox.CalcDiamCenter(); Solid * redsol = sol -> GetReducedSolid (sbox); if (redsol)