]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
PAL22090 Qudrangle_2D preference Type works incorrectly with Sub-mesh on concave...
authoreap <eap@opencascade.com>
Thu, 21 Oct 2010 08:59:07 +0000 (08:59 +0000)
committereap <eap@opencascade.com>
Thu, 21 Oct 2010 08:59:07 +0000 (08:59 +0000)
   Fix Reverse() for the case of degenarated side (3-d constructor)

src/StdMeshers/StdMeshers_FaceSide.cxx

index 036da0ba9bbf4ac6488a46633395eab921ed42e2..f882f5c92c98a59b932147c5e588b577d1eba25a 100644 (file)
@@ -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();
+  }
 }
 
 //================================================================================