PAL13330( When mesh generation does not success, trace where )

fix computation of myNormPar in Reverse()
This commit is contained in:
eap 2007-04-10 14:18:04 +00:00
parent 520e3c53e2
commit c7f9c58caf

View File

@ -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 );