[vtkusers] how to get index of a point of a polygon?

Elvis Chen anisotropic7 at yahoo.ca
Mon Nov 11 17:50:37 EST 2002


Greetings,

I have a vtkPolyData which I read in as a .vtk file through
vtkPolyDatareader.  It is a simple triangulated mesh, with points (x, y,
z, no point normal) and indices to the points that made up the
triangle.  For example:

# vtk DataFile Version 2.0
mesh2vtk
ASCII
DATASET POLYDATA
POINTS 18174 float
8.76414 -3.19552 32.9946
10.1461 0 32.9946
...
...
...
POLYGONS 6058 24232
3 0 1 2
3 3 4 5
3 6 7 8
...
...
...

My question is, once I read the .vtk file through vtkPolyDataReader, how
to I get the index of a point that a given triangle is made of?  e.g.
for triangle 2, how do I get indices of (6,7,8) back?

thx in advance,

ECC

______________________________________________________________________ 
Post your free ad now! http://personals.yahoo.ca



More information about the vtkusers mailing list