mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-12 00:59:16 +05:00
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:
commit
85f26ac5fa
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user