[vtkusers] Delaunay3D: how to convert from unstructured grid dataset to polydata?
Terence Lim
tlim at mda.ca
Tue Sep 25 20:13:11 EDT 2001
Please disregard my earlier inquiry about Delaunay2D.
how do i map the output from delaunay3d to the graphics library? I know that
the output from delaunay3d is an unstructured grid data set. Is there a
method to transform this into a polydata set which i can then map?
i have tried vtkExtractEdges and it compiled but it ran into many errors
when linking. Here is/was my code:
vtkExtractEdges *filter;
filter = vtkExtractEdges::New();
filter->SetInput(Delaunay->GetOutput());
map = vtkPolyDataMapper::New();
map->SetInput(filter->GetOutput());
aDelaunay = vtkActor::New();
aDelaunay->SetMapper(map);
ren1->AddActor(aDelaunay);
ren1->SetBackground(1,1,1);
renWin->Render();
iren->Start();
Thanks everyone, I really appreciate your help :) -Terence
More information about the vtkusers
mailing list