Salome HOME
projects
/
modules
/
smesh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
90e0893
)
Fix regression of smesh/2D_mesh_Polygons_00/A2
author
eap
<eap@opencascade.com>
Thu, 14 Dec 2017 10:44:24 +0000
(13:44 +0300)
committer
eap
<eap@opencascade.com>
Thu, 14 Dec 2017 10:44:24 +0000
(13:44 +0300)
src/Controls/SMESH_Controls.cxx
patch
|
blob
|
history
diff --git
a/src/Controls/SMESH_Controls.cxx
b/src/Controls/SMESH_Controls.cxx
index 13a2a0008a8ecfa2845b68459e4467f1b35775dc..f86b5638719dfb201d6e15ab0a6e4487a1b0f174 100644
(file)
--- a/
src/Controls/SMESH_Controls.cxx
+++ b/
src/Controls/SMESH_Controls.cxx
@@
-104,7
+104,7
@@
namespace {
gp_Vec v1( P1 - P2 ), v2( P3 - P2 );
double dot = v1 * v2, len1 = v1.SquareMagnitude(), len2 = v2.SquareMagnitude();
gp_Vec v1( P1 - P2 ), v2( P3 - P2 );
double dot = v1 * v2, len1 = v1.SquareMagnitude(), len2 = v2.SquareMagnitude();
- return ( len1 < gp::Resolution() || len2 < gp::Resolution() ? -1 :
+ return (
dot < 0 ||
len1 < gp::Resolution() || len2 < gp::Resolution() ? -1 :
dot * dot / len1 / len2 );
}
dot * dot / len1 / len2 );
}
@@
-736,7
+736,7
@@
double MinimumAngle::GetValue( const TSequenceOfXYZ& P )
double A0 = getCos2( P( i-1 ), P( i ), P( i+1 ) );
aMaxCos2 = Max( aMaxCos2, A0 );
}
double A0 = getCos2( P( i-1 ), P( i ), P( i+1 ) );
aMaxCos2 = Max( aMaxCos2, A0 );
}
- if ( aMaxCos2 <
=
0 )
+ if ( aMaxCos2 < 0 )
return 0; // all nodes coincide
double cos = sqrt( aMaxCos2 );
return 0; // all nodes coincide
double cos = sqrt( aMaxCos2 );