mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-13 06:30:34 +05:00
fix historical bug in extremalpoints for spheres
This commit is contained in:
parent
8c56725dcf
commit
884a70319c
@ -1449,11 +1449,9 @@ namespace netgen
|
|||||||
|
|
||||||
int dir = 0;
|
int dir = 0;
|
||||||
for (int j = 1; j < 3; j++)
|
for (int j = 1; j < 3; j++)
|
||||||
if (fabs (v12(j)) > v12(dir))
|
if (fabs (v12(j)) < fabs(v12(dir)))
|
||||||
dir = j;
|
dir = j;
|
||||||
|
|
||||||
// *testout << "dir = " << dir << endl;
|
|
||||||
|
|
||||||
Vec<3> ei = 0.0;
|
Vec<3> ei = 0.0;
|
||||||
ei(dir) = 1;
|
ei(dir) = 1;
|
||||||
a2 = Cross (v12, ei);
|
a2 = Cross (v12, ei);
|
||||||
|
Loading…
Reference in New Issue
Block a user