From b0171547018588b6cf6edd15f76460f5ee5306d4 Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 29 Mar 2013 15:17:24 +0000 Subject: [PATCH] 0022183: EDF SMESH: Error with ConvertToQuadratic In ConvertToQuadratic(), not set quadratic elements on shapes when converting linear elements not assigned to any shape --- src/SMESH/SMESH_MeshEditor.cxx | 1 + 1 file changed, 1 insertion(+) 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()) -- 2.39.2