Merge branch 'fix_csg_specpoint_tolerance' into 'master'

fix tolerance in specpoints check (compare Dist2() with sqr(1e-8*geomsize) )

See merge request jschoeberl/netgen!389
This commit is contained in:
Matthias Hochsteger 2021-06-08 18:34:44 +00:00
commit 85f26ac5fa

View File

@ -2090,7 +2090,7 @@ namespace netgen
for (int m = 0; m < locsearch.Size(); m++)
{
if (Dist2 (specpoints[locsearch[m]].p, apoints[i]) < 1e-10*geomsize
if (Dist2 (specpoints[locsearch[m]].p, apoints[i]) < sqr(1e-8*geomsize)
&& Abs2(specpoints[locsearch[m]].v - t) < 1e-8)
{
spi = locsearch[m];