From 79f563131a61c380a58706e391be56f94e62a04b Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Sat, 31 Dec 2022 18:47:03 +0100 Subject: [PATCH] Clean code --- packages/vtk/src/bbvtkMarchingCubes.cxx | 40 ++++++++++++------------- packages/vtk/src/bbvtkMarchingCubes.h | 1 - 2 files changed, 20 insertions(+), 21 deletions(-) diff --git a/packages/vtk/src/bbvtkMarchingCubes.cxx b/packages/vtk/src/bbvtkMarchingCubes.cxx index 83f9b4d..48272ac 100644 --- a/packages/vtk/src/bbvtkMarchingCubes.cxx +++ b/packages/vtk/src/bbvtkMarchingCubes.cxx @@ -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 } //----------------------------------------------------------------- diff --git a/packages/vtk/src/bbvtkMarchingCubes.h b/packages/vtk/src/bbvtkMarchingCubes.h index 3e7c4a6..4c235f9 100644 --- a/packages/vtk/src/bbvtkMarchingCubes.h +++ b/packages/vtk/src/bbvtkMarchingCubes.h @@ -100,7 +100,6 @@ namespace bbvtk } */ - // BBTK_VTK_PROCESS(); BBTK_PROCESS(Process); void Process(); -- 2.47.1