]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Make IsQuadraticMesh() return LINEAR instead of QUADRATIC in an empty mesh
authoreap <eap@opencascade.com>
Mon, 1 Oct 2012 14:08:42 +0000 (14:08 +0000)
committereap <eap@opencascade.com>
Mon, 1 Oct 2012 14:08:42 +0000 (14:08 +0000)
src/SMESH/SMESH_MesherHelper.cxx

index 661d8da8975e76d17bfb32c0a2f50234de7fbde1..ffca47e6aa48d5dc3a864f35b634f2bbde2707d7 100644 (file)
@@ -2025,6 +2025,8 @@ SMESH_MesherHelper:: MType SMESH_MesherHelper::IsQuadraticMesh()
   int NbFacesAndEdges=0;
   //All faces and edges
   NbAllEdgsAndFaces = myMesh->NbEdges() + myMesh->NbFaces();
+  if ( NbAllEdgsAndFaces == 0 )
+    return SMESH_MesherHelper::LINEAR;
   
   //Quadratic faces and edges
   NbQuadFacesAndEdgs = myMesh->NbEdges(ORDER_QUADRATIC) + myMesh->NbFaces(ORDER_QUADRATIC);