From 5f62c18c488c70abee693e377b09d93836ca9b00 Mon Sep 17 00:00:00 2001 From: eap Date: Mon, 1 Oct 2012 14:08:42 +0000 Subject: [PATCH] Make IsQuadraticMesh() return LINEAR instead of QUADRATIC in an empty mesh --- src/SMESH/SMESH_MesherHelper.cxx | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.39.2