From: eap Date: Thu, 21 Oct 2010 08:59:07 +0000 (+0000) Subject: PAL22090 Qudrangle_2D preference Type works incorrectly with Sub-mesh on concave... X-Git-Tag: V5_1_5rc1~10 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f6c4926d41c5f420974f9e87e99b6ec2b74e4c60;p=modules%2Fsmesh.git PAL22090 Qudrangle_2D preference Type works incorrectly with Sub-mesh on concave edges. Fix Reverse() for the case of degenarated side (3-d constructor) --- diff --git a/src/StdMeshers/StdMeshers_FaceSide.cxx b/src/StdMeshers/StdMeshers_FaceSide.cxx index 036da0ba9..f882f5c92 100644 --- a/src/StdMeshers/StdMeshers_FaceSide.cxx +++ b/src/StdMeshers/StdMeshers_FaceSide.cxx @@ -452,9 +452,12 @@ void StdMeshers_FaceSide::Reverse() reverse( myEdgeLength ); reverse( myIsUniform ); } - myNormPar[nbEdges-1]=1.; - myPoints.clear(); - myFalsePoints.clear(); + if ( nbEdges > 0 ) + { + myNormPar[nbEdges-1]=1.; + myPoints.clear(); + myFalsePoints.clear(); + } } //================================================================================