]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
PAL8581. call SmoothParametric[Object]() instead of IsParametric parameter usage
authoreap <eap@opencascade.com>
Thu, 12 May 2005 08:07:08 +0000 (08:07 +0000)
committereap <eap@opencascade.com>
Thu, 12 May 2005 08:07:08 +0000 (08:07 +0000)
src/SMESHGUI/SMESHGUI_SmoothingDlg.cxx

index 1d2b909a3209f0f97df8fe4380a1cbe07e7fdec4..4968001a99ccab56623ed2af5ca4ad2a82ee01bf 100644 (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( ... )