From: eap Date: Mon, 1 Oct 2012 14:08:42 +0000 (+0000) Subject: Make IsQuadraticMesh() return LINEAR instead of QUADRATIC in an empty mesh X-Git-Tag: V6_6_0a1~69 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5f62c18c488c70abee693e377b09d93836ca9b00;p=modules%2Fsmesh.git Make IsQuadraticMesh() return LINEAR instead of QUADRATIC in an empty mesh --- diff --git a/src/SMESH/SMESH_MesherHelper.cxx b/src/SMESH/SMESH_MesherHelper.cxx index 661d8da89..ffca47e6a 100644 --- a/src/SMESH/SMESH_MesherHelper.cxx +++ b/src/SMESH/SMESH_MesherHelper.cxx @@ -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);