35 #include <vtkDecimatePro.h> 36 #include <vtkLinearSubdivisionFilter.h> 37 #include "Exception.hpp" 38 #include "SurfaceCleaner.hpp" 43 mDecimateTargetReduction(0.9994),
44 mDecimateFeatureAngle(15.0),
45 mLinearSubdivisionNumber(3)
69 EXCEPTION(
"No output set. Did you run 'Update()' ?");
97 EXCEPTION(
"No input set.");
100 vtkSmartPointer<vtkDecimatePro> p_decimate = vtkSmartPointer<vtkDecimatePro>::New();
101 #if VTK_MAJOR_VERSION <= 5 108 p_decimate->Update();
110 vtkSmartPointer<vtkLinearSubdivisionFilter> p_divide = vtkSmartPointer<vtkLinearSubdivisionFilter>::New();
111 p_divide->SetInputConnection(p_decimate->GetOutputPort());
vtkSmartPointer< vtkPolyData > GetOutput()
double mDecimateTargetReduction
void SetDecimateTargetReduction(double value)
void SetInput(vtkSmartPointer< vtkPolyData > pInputSurface)
double mDecimateFeatureAngle
static boost::shared_ptr< SurfaceCleaner > Create()
void SetLinearSubdivisionNumber(double value)
unsigned mLinearSubdivisionNumber
vtkSmartPointer< vtkPolyData > mpOutputSurface
void SetDecimateFeatureAngle(double value)
vtkSmartPointer< vtkPolyData > mpInputSurface