From c7f9c58cafd2a2acf775e7565f362873bbb8828a Mon Sep 17 00:00:00 2001 From: eap Date: Tue, 10 Apr 2007 14:18:04 +0000 Subject: [PATCH] PAL13330( When mesh generation does not success, trace where ) fix computation of myNormPar in Reverse() --- src/StdMeshers/StdMeshers_FaceSide.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ); -- 2.39.2