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();
QApplication::setOverrideCursor(Qt::waitCursor);
aResult = aMeshEditor->Smooth(anElementsId.inout(), aNodesId.inout(),
anIterationLimit, aMaxAspectRatio, aMethod,
CheckBoxParametric->isChecked());
if ( CheckBoxParametric->isChecked() )
aResult = aMeshEditor->SmoothParametric(anElementsId.inout(), aNodesId.inout(),
anIterationLimit, aMaxAspectRatio, aMethod);
else
aResult = aMeshEditor->Smooth(anElementsId.inout(), aNodesId.inout(),
anIterationLimit, aMaxAspectRatio, aMethod);
QApplication::restoreOverrideCursor();
}
catch( ... )