From: eap Date: Tue, 10 Apr 2007 14:18:04 +0000 (+0000) Subject: PAL13330( When mesh generation does not success, trace where ) X-Git-Tag: V3_2_6pre4~17 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c7f9c58cafd2a2acf775e7565f362873bbb8828a;p=modules%2Fsmesh.git PAL13330( When mesh generation does not success, trace where ) fix computation of myNormPar in Reverse() --- diff --git a/src/StdMeshers/StdMeshers_FaceSide.cxx b/src/StdMeshers/StdMeshers_FaceSide.cxx index 0ceabc89b..85057fb5c 100644 --- a/src/StdMeshers/StdMeshers_FaceSide.cxx +++ b/src/StdMeshers/StdMeshers_FaceSide.cxx @@ -354,9 +354,9 @@ void StdMeshers_FaceSide::Reverse() int nbEdges = myEdge.size(); for ( int i = nbEdges-1; i >= 0; --i ) { std::swap( myFirst[i], myLast[i] ); - // at the first loop 1. is overwritten - myNormPar[i] = 1 - myNormPar[i-1]; myEdge[i].Reverse(); + if ( i > 0 ) // at the first loop 1. is overwritten + myNormPar[i] = 1 - myNormPar[i-1]; } if ( nbEdges > 1 ) { reverse( myEdge );