mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-23 19:30:33 +05:00
Cylinder::IsIdentic use angle-epsilon
This commit is contained in:
parent
992b47a561
commit
1c585e5d67
@ -877,9 +877,11 @@ namespace netgen
|
||||
Vec<3> v1 = b - a;
|
||||
Vec<3> v2 = cyl2->a - a;
|
||||
|
||||
if ( fabs (v1 * v2) < (1-eps) * v1.Length() * v2.Length()) return 0;
|
||||
// if ( fabs (v1 * v2) < (1-1e-12) * v1.Length() * v2.Length()) return 0;
|
||||
if ( Cross(v1,v2).Length2() > 1e-20 * v1.Length2() * v2.Length2()) return 0;
|
||||
v2 = cyl2->b - a;
|
||||
if ( fabs (v1 * v2) < (1-eps) * v1.Length() * v2.Length()) return 0;
|
||||
// if ( fabs (v1 * v2) < (1-eps) * v1.Length() * v2.Length()) return 0;
|
||||
if ( Cross(v1,v2).Length2() > 1e-20 * v1.Length2() * v2.Length2()) return 0;
|
||||
|
||||
inv = 0;
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user