[vtkusers] Transforming vtkDataSet into vtkPolyData

Rainer Grimmer Zwerg191 at web.de
Sun Mar 25 08:17:33 EDT 2007


Hi All

Does anybody know how to transform the vtkDataSet into a vtkPolyData?

Or know an other way to get the triangle information of the vtkDelaunay3D function.

Therefore my code is the following, but I don’t have an idea for the next step.

	vtkDelaunay3D *del = vtkDelaunay3D::New();
	del->SetInput(Data);

	vtkDataSetMapper *mapMesh = vtkDataSetMapper::New();
	mapMesh->SetInputConnection(del->GetOutputPort());
	mapMesh->Update();


	vtkDataSet * Out;
	Out = mapMesh->GetInputAsDataSet();

        vtkPolyData *Tri;
	Tri = ???


Thanks for any help or hint where i can find something helpful. 

Regards,
Rainer Grimmer

_______________________________________________________________
SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192




More information about the vtkusers mailing list