vtkDecimatePro with SetDegree(x) not working
Hi
I am trying to generate a decimated mesh with a specific SetDegree(x) (max. number of triangles connected to any vertex).
My approach:
vtkSmartPointer<vtkDecimatePro> decimated = vtkSmartPointer<vtkDecimatePro>::New();
decimated->SetInputData(polydata);
decimated->BoundaryVertexDeletionOn();
decimated->SetDegree(5);
decimated->SplittingOn();
//decimated->PreserveTopologyOn();
decimated->SetTargetReduction(percentReduction);
decimated->Update();
There is no difference if I use SetDegree(5), SetDegree(100) or if I don't use it at all. Also, other functions such as PreserveTopologyOn() don't affect the decimated mesh, it looks always the same.
Is there a way to make these functions work?
I use VTK 8.1.0.
Thanks