[vtkusers] tesselation problems / bug ?

Sébastien MARAUX maraux at ondim.fr
Fri Mar 12 05:08:01 EST 2004


Hello,

While using vtkTriangleFilter :

		vtkTriangleFilter *tesselator =
vtkTriangleFilter::New();
		tesselator->SetInput(mp_PolyData);
		//tesselator->PassLinesOn();
		//tesselator->PassVertsOn();
		tesselator->Update();
	
mp_PolyData->SetPoints(tesselator->GetOutput()->GetPoints());
		mp_PolyData->DeepCopy(tesselator->GetOutput());
		tesselator->Delete();

With only a VTK_POLYGON Cell and associated points as input, it produces
some triangulated polygons, but with some missing triangle faces
(usually the most wide ones).

Is this a bug or did I do something wrong ?

Is there some workaround, other than using Delaunay triangulation (which
is not perfect either).

Sebastien MARAUX




More information about the vtkusers mailing list