fix historical bug in extremalpoints for spheres

This commit is contained in:
Joachim Schöberl 2018-06-28 20:54:02 +02:00
parent 8c56725dcf
commit 884a70319c

View File

@ -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);