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 );
+*/
}
//=====
#include "bbcreaVtkPackage.h"
#include "vtkSTLReader.h"
+#include "vtkFillHolesFilter.h"
namespace bbcreaVtk
{
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)