From: Eduardo DAVILA Date: Fri, 16 Jul 2021 06:29:59 +0000 (+0200) Subject: #3467 FillHolesFilter box X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=937822256978ed571b7d004ef1a5abe9492a8ada;p=creaVtk.git #3467 FillHolesFilter box --- diff --git a/bbtk_creaVtk_PKG/src/bbcreaVtkCutter.cxx b/bbtk_creaVtk_PKG/src/bbcreaVtkCutter.cxx index d8d148c..44af51b 100644 --- a/bbtk_creaVtk_PKG/src/bbcreaVtkCutter.cxx +++ b/bbtk_creaVtk_PKG/src/bbcreaVtkCutter.cxx @@ -46,16 +46,17 @@ void Cutter::Process() cutter->SetInputData( bbGetInputIn() ); cutter->SetCutFunction( bbGetInputImplicitFunction() ); cutter->Update(); - + bbSetOutputOut( cutter->GetOutput() ); + +/* strips = vtkStripper::New(); strips->SetInputData( cutter->GetOutput() ); strips->Update(); poly = vtkPolyData::New(); poly->SetPoints( strips->GetOutput()->GetPoints() ); poly->SetPolys( strips->GetOutput()->GetLines() ); - -// bbSetOutputOut( cutter->GetOutput() ); bbSetOutputOut( poly ); +*/ } //===== diff --git a/bbtk_creaVtk_PKG/src/bbcreaVtkStlReader.cxx b/bbtk_creaVtk_PKG/src/bbcreaVtkStlReader.cxx index ae30c70..52bcb5b 100644 --- a/bbtk_creaVtk_PKG/src/bbcreaVtkStlReader.cxx +++ b/bbtk_creaVtk_PKG/src/bbcreaVtkStlReader.cxx @@ -5,6 +5,7 @@ #include "bbcreaVtkPackage.h" #include "vtkSTLReader.h" +#include "vtkFillHolesFilter.h" namespace bbcreaVtk { @@ -33,6 +34,14 @@ void StlReader::Process() reader->SetFileName( bbGetInputFileName().c_str() ); reader->Update(); bbSetOutputOut( reader->GetOutput() ); + +/* + vtkFillHolesFilter *filler = vtkFillHolesFilter::New(); + filler->SetInputData( reader->GetOutput() ); + filler->SetHoleSize(500); + filler->Update(); + bbSetOutputOut( filler->GetOutput() ); + */ } //===== // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)