Salome HOME
0021177: EDF 1563 SMESH: Preview of mesh during a modification
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_ExtrusionDlg.cxx
index 0a8256bbe805131bb3c3ef9257b2ba681ec5749f..514615a3f4a3d1eb2da89aeea41a60e15155dfdf 100644 (file)
@@ -1069,8 +1069,8 @@ void SMESHGUI_ExtrusionDlg::onDisplaySimulation( bool toDisplayPreview ) {
       long aNbSteps = (long)SpinBox_NbSteps->value();
       
       try {
-       SUIT_OverrideCursor aWaitCursor;
-       SMESH::SMESH_MeshEditor_var aMeshEditor = myMesh->GetMeshEditPreviewer();
+        SUIT_OverrideCursor aWaitCursor;
+        SMESH::SMESH_MeshEditor_var aMeshEditor = myMesh->GetMeshEditPreviewer();
         if( CheckBoxMesh->isChecked() ) {
           if( GetConstructorId() == 0 )
             aMeshEditor->ExtrusionSweepObject1D(mySelectedObject, aVector, aNbSteps);
@@ -1079,11 +1079,11 @@ void SMESHGUI_ExtrusionDlg::onDisplaySimulation( bool toDisplayPreview ) {
         }
         else
           aMeshEditor->ExtrusionSweep(myElementsId.inout(), aVector, aNbSteps);
-       
+        
         SMESH::MeshPreviewStruct_var aMeshPreviewStruct = aMeshEditor->GetPreviewData();
         mySimulation->SetData(aMeshPreviewStruct._retn());
       } catch (...) {
-       hidePreview();
+        hidePreview();
       }
     } else {
       hidePreview();
@@ -1101,11 +1101,11 @@ void SMESHGUI_ExtrusionDlg::getExtrusionVector(SMESH::DirStruct& aVector) {
   if ( RadioButton3->isChecked() ) {
     aVector.PS.x = SpinBox_Dx->GetValue();
     aVector.PS.y = SpinBox_Dy->GetValue();
-    aVector.PS.z = SpinBox_Dz->GetValue();     
+    aVector.PS.z = SpinBox_Dz->GetValue();      
   } else if ( RadioButton4->isChecked() ) {
     gp_XYZ aNormale(SpinBox_Vx->GetValue(),
-                   SpinBox_Vy->GetValue(),
-                   SpinBox_Vz->GetValue());
+                    SpinBox_Vy->GetValue(),
+                    SpinBox_Vz->GetValue());
     
     
     aNormale /= aNormale.Modulus();