]> Creatis software - bbtk.git/commitdiff
Clean code
authorEduardo DAVILA <davila@creatis.insa-lyon.fr>
Sat, 31 Dec 2022 17:47:03 +0000 (18:47 +0100)
committerEduardo DAVILA <davila@creatis.insa-lyon.fr>
Sat, 31 Dec 2022 17:47:03 +0000 (18:47 +0100)
packages/vtk/src/bbvtkMarchingCubes.cxx
packages/vtk/src/bbvtkMarchingCubes.h

index 83f9b4d0eec2a8a3614255c86df2adde1c059270..48272acf764dd8cfa5cef7ea58eccd3cbad39f28 100644 (file)
@@ -53,26 +53,26 @@ namespace bbvtk
 
        void MarchingCubes::Process()
        {
-               if (bbGetInputActive()==true)
-               {
-                       bbGetVtkObject()->SetValue(0, bbGetInputValue() );
-
-                       if(bbGetInputComputeNormalsOn()) 
-                       {
-                               bbGetVtkObject()->ComputeNormalsOn();
-                       }else {
-                               bbGetVtkObject()->ComputeNormalsOff();
-                       }
-
-                       if(bbGetInputComputeScalarsOn())
-                       {
-                               bbGetVtkObject()->ComputeScalarsOn();
-                       }else{
-                               bbGetVtkObject()->ComputeScalarsOff();
-                       }
-
-                       bbGetVtkObject()->Update();             
-               }
+            if (bbGetInputActive()==true)
+            {
+                bbGetVtkObject()->SetValue(0, bbGetInputValue() );
+                
+                if(bbGetInputComputeNormalsOn())
+                {
+                    bbGetVtkObject()->ComputeNormalsOn();
+                }else {
+                    bbGetVtkObject()->ComputeNormalsOff();
+                }// if Normals
+                
+                if(bbGetInputComputeScalarsOn())
+                {
+                    bbGetVtkObject()->ComputeScalarsOn();
+                }else{
+                    bbGetVtkObject()->ComputeScalarsOff();
+                }// if Scalars
+                
+                bbGetVtkObject()->Update();
+            } // Active
        }
        
        //-----------------------------------------------------------------     
index 3e7c4a6cc9f18ae44449626fa4dd421a55a51fcf..4c235f9aa1c8cef448dc440d2346838e9c13403b 100644 (file)
@@ -100,7 +100,6 @@ namespace bbvtk
           }
 */
          
-         
   // BBTK_VTK_PROCESS();
          BBTK_PROCESS(Process);
          void Process();