From f6c4926d41c5f420974f9e87e99b6ec2b74e4c60 Mon Sep 17 00:00:00 2001 From: eap Date: Thu, 21 Oct 2010 08:59:07 +0000 Subject: [PATCH] PAL22090 Qudrangle_2D preference Type works incorrectly with Sub-mesh on concave edges. Fix Reverse() for the case of degenarated side (3-d constructor) --- src/StdMeshers/StdMeshers_FaceSide.cxx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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(); + } } //================================================================================ -- 2.39.2