From: eap Date: Fri, 29 Mar 2013 15:17:24 +0000 (+0000) Subject: 0022183: EDF SMESH: Error with ConvertToQuadratic X-Git-Tag: pluginMGCleaner~18 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b0171547018588b6cf6edd15f76460f5ee5306d4;p=modules%2Fsmesh.git 0022183: EDF SMESH: Error with ConvertToQuadratic In ConvertToQuadratic(), not set quadratic elements on shapes when converting linear elements not assigned to any shape --- diff --git a/src/SMESH/SMESH_MeshEditor.cxx b/src/SMESH/SMESH_MeshEditor.cxx index 065ace64b..6d3e74d4e 100644 --- a/src/SMESH/SMESH_MeshEditor.cxx +++ b/src/SMESH/SMESH_MeshEditor.cxx @@ -9714,6 +9714,7 @@ void SMESH_MeshEditor::ConvertToQuadratic(const bool theForce3d, const bool theT int totalNbElems = meshDS->NbEdges() + meshDS->NbFaces() + meshDS->NbVolumes(); if ( nbCheckedElems < totalNbElems ) // not all elements are in submeshes { + aHelper.SetElementsOnShape(false); SMESHDS_SubMesh *smDS = 0; SMDS_EdgeIteratorPtr aEdgeItr = meshDS->edgesIterator(); while(aEdgeItr->more())