]> Creatis software - creaVtk.git/commitdiff
Clean code
authorEduardo DAVILA <davila@creatis.insa-lyon.fr>
Thu, 8 Jun 2023 04:54:46 +0000 (06:54 +0200)
committerEduardo DAVILA <davila@creatis.insa-lyon.fr>
Thu, 8 Jun 2023 04:54:46 +0000 (06:54 +0200)
bbtk_creaVtk_PKG/src/bbcreaVtkPolyDataToImageData.cxx

index 3c6de3d397fc1cb4181ea9bbb3b88a9862308dc4..bed2479046a0c0657f3aba14bf7fab0b63e2942d 100644 (file)
@@ -46,11 +46,9 @@ printf("EED Warnning!! PolyDataToImageData::Process    Clean this code .........
                clean1 = vtkCleanPolyData::New();
                clean1->SetInputData( bbGetInputInPolyData() );
                clean1->Update();
-        printf("EED PolyDataToImageData::Process 1 \n");
                vtkTriangleFilter *triangle1 = vtkTriangleFilter::New();
                triangle1->SetInputData( clean1->GetOutput() );
                triangle1->Update();
-        printf("EED PolyDataToImageData::Process 2 \n");
 //             vtkPolyDataToImageStencil *dataToStencil = vtkPolyDataToImageStencil::New();
                if (dataToStencil!=NULL) dataToStencil->Delete();
                dataToStencil = vtkPolyDataToImageStencil::New();
@@ -59,7 +57,6 @@ printf("EED Warnning!! PolyDataToImageData::Process    Clean this code .........
         dataToStencil->SetOutputSpacing( spc );
                dataToStencil->SetOutputWholeExtent( ext );
                dataToStencil->Update();
-        printf("EED PolyDataToImageData::Process 3 \n");
 //             vtkExtractVOI *extract = vtkExtractVOI::New();
                if (extract!=NULL) extract->Delete();
                extract = vtkExtractVOI::New();
@@ -68,18 +65,15 @@ printf("EED Warnning!! PolyDataToImageData::Process    Clean this code .........
                extract->SetInputData( bbGetInputInImage() );
                extract->ReleaseDataFlagOff();
                extract->Update();      
-        printf("EED PolyDataToImageData::Process 4 \n");
 //             vtkImageStencil *stencil = vtkImageStencil::New();
                if (stencil!=NULL) stencil->Delete();
                stencil = vtkImageStencil::New();
                stencil->SetInputData( extract->GetOutput() );
                stencil->Update();
-        printf("EED PolyDataToImageData::Process 5 \n");
                stencil->SetStencilData(  dataToStencil->GetOutput() );
                stencil->ReverseStencilOn();
                stencil->SetBackgroundValue( bbGetInputBackgroundValue() );
                stencil->Update();
-        printf("EED PolyDataToImageData::Process 6 \n");
                bbSetOutputOut( stencil->GetOutput() );
        } else {
                printf("EED Warnning!  PolyDataToImageData::Process  > Missing Image or PolyData inputs\n");