Fix ConvertToQuadratic() for a mesh without edges

This commit is contained in:
eap 2006-05-06 06:57:20 +00:00
parent d3af61ce33
commit c2805b7c74

View File

@ -6163,6 +6163,7 @@ void SMESH_MeshEditor::ConvertToQuadratic(const bool theForce3d)
SMESHDS_Mesh* meshDS = GetMeshDS();
SMESH_MesherHelper* aHelper = new SMESH_MesherHelper(*myMesh);
aHelper->SetKeyIsQuadratic( true );
const TopoDS_Shape& aShape = meshDS->ShapeToMesh();
if ( !aShape.IsNull() && GetMesh()->GetSubMeshContaining(aShape) )