From 884a70319ca5c46bd11a9ea00292c0820929a848 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Sch=C3=B6berl?= Date: Thu, 28 Jun 2018 20:54:02 +0200 Subject: [PATCH] fix historical bug in extremalpoints for spheres --- libsrc/csg/specpoin.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libsrc/csg/specpoin.cpp b/libsrc/csg/specpoin.cpp index ace26248..13187ace 100644 --- a/libsrc/csg/specpoin.cpp +++ b/libsrc/csg/specpoin.cpp @@ -1449,11 +1449,9 @@ namespace netgen int dir = 0; for (int j = 1; j < 3; j++) - if (fabs (v12(j)) > v12(dir)) + if (fabs (v12(j)) < fabs(v12(dir))) dir = j; - // *testout << "dir = " << dir << endl; - Vec<3> ei = 0.0; ei(dir) = 1; a2 = Cross (v12, ei);