[vtkusers] Using vtkTriangleFilter to reduce concave polygons to convex
Alex Southern
mrapsouthern at gmail.com
Sat Jun 30 08:32:16 EDT 2012
Hi,
The pd1 vtkPolyData contains concave polygons, that I would like to
reduce into triangles.
vtkTriangleFilter was mentioned as being appropriate, but no actual
solution was posted.
http://www.vtk.org/pipermail/vtkusers/2009-November/103551.html
I want to apply the filter and put triangulated data back into pd2.
If I view pd1 I can see the model, but with flickering due to the
concave polygons. But pd2 displays nothing - could someone give me a
nudge in the right direction?
Cheers
A.
vtkSmartPointer<vtkPolyData> pd1 = vtkSmartPointer<vtkPolyData>::New();
vtkSmartPointer<vtkPolyData> pd2 = vtkSmartPointer<vtkPolyData>::New();
vtkSmartPointer<vtkTriangleFilter> triFilter =
vtkSmartPointer<vtkTriangleFilter>::New();
triFilter->SetInput( pd1 );
pd2= triFilter->GetOutput();
More information about the vtkusers
mailing list