[vtkusers] Help needed with polydata

Terence Lim tlim at mda.ca
Wed Oct 10 19:06:15 EDT 2001


Hi,

Here is some background info:

vtkPoints *xyz;
:				//insert x,y,z co-ordinates into xyz
:
vtkPolyData *PolyData;
:
:
PolyData->SetPoints(xyz);
:
:
vtkDelaunay2D *Delaunay;


-Is there a method to extract cells (in my case, cells of the type,
VTK_TRIANGLE,) from the inputted points  and then use the GetCellNeighbors &
GetCellEdgeNeighbors methods?

-I have tried inputting each cells manually (i.e
PolyData->InsertNextCell(...) ) and the GetCellNeighbors and
GetCellEdgeNeighbors methods worked just fine however i noticed that the
shape of the Delaunay triangulated mesh was drastically altered.  Has anyone
encountered this problem?

Thanks for your help,

Terence Lim







More information about the vtkusers mailing list