From: Eduardo DAVILA Date: Thu, 8 Jun 2023 04:54:46 +0000 (+0200) Subject: Clean code X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=9b341526bba40db32ed0901713e44ae730546a6b;p=creaVtk.git Clean code --- diff --git a/bbtk_creaVtk_PKG/src/bbcreaVtkPolyDataToImageData.cxx b/bbtk_creaVtk_PKG/src/bbcreaVtkPolyDataToImageData.cxx index 3c6de3d..bed2479 100644 --- a/bbtk_creaVtk_PKG/src/bbcreaVtkPolyDataToImageData.cxx +++ b/bbtk_creaVtk_PKG/src/bbcreaVtkPolyDataToImageData.cxx @@ -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");