mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-30 02:10:32 +05:00
0020139: EDF 944 SMESH : Get 2D/3D element with X, Y, Z coordinates
fix isOut()
This commit is contained in:
parent
7ef4c6e012
commit
339e2f0051
@ -5640,9 +5640,9 @@ bool SMESH_MeshEditor::isOut( const SMDS_MeshElement* element, const gp_Pnt& poi
|
||||
for ( i = 0; i < nbNodes; ++i )
|
||||
{
|
||||
double r;
|
||||
if ( dist[i] < tol )
|
||||
if ( fabs( dist[i]) < tol )
|
||||
r = 0.;
|
||||
else if ( dist[i+1] < tol )
|
||||
else if ( fabs( dist[i+1]) < tol )
|
||||
r = 1.;
|
||||
else if ( dist[i] * dist[i+1] < 0 )
|
||||
r = dist[i] / ( dist[i] - dist[i+1] );
|
||||
|
Loading…
Reference in New Issue
Block a user