PAL8581. call SmoothParametric[Object]() instead of IsParametric parameter usage

This commit is contained in:
eap 2005-05-12 08:07:08 +00:00
parent bc108308ca
commit b6b4412159

View File

@ -361,9 +361,12 @@ void SMESHGUI_SmoothingDlg::ClickOnApply()
{ {
SMESH::SMESH_MeshEditor_var aMeshEditor = myMesh->GetMeshEditor(); SMESH::SMESH_MeshEditor_var aMeshEditor = myMesh->GetMeshEditor();
QApplication::setOverrideCursor(Qt::waitCursor); QApplication::setOverrideCursor(Qt::waitCursor);
aResult = aMeshEditor->Smooth(anElementsId.inout(), aNodesId.inout(), if ( CheckBoxParametric->isChecked() )
anIterationLimit, aMaxAspectRatio, aMethod, aResult = aMeshEditor->SmoothParametric(anElementsId.inout(), aNodesId.inout(),
CheckBoxParametric->isChecked()); anIterationLimit, aMaxAspectRatio, aMethod);
else
aResult = aMeshEditor->Smooth(anElementsId.inout(), aNodesId.inout(),
anIterationLimit, aMaxAspectRatio, aMethod);
QApplication::restoreOverrideCursor(); QApplication::restoreOverrideCursor();
} }
catch( ... ) catch( ... )