0022183: EDF SMESH: Error with ConvertToQuadratic

In ConvertToQuadratic(), not set quadratic elements on shapes when converting
linear elements not assigned to any shape
This commit is contained in:
eap 2013-03-29 15:17:24 +00:00
parent b59de0167b
commit b017154701

View File

@ -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())