converting ijk to point index?

gvwilson at gvwilson at
Tue Aug 31 11:46:59 EDT 1999

Hi.  I've loaded the "combxyz" data set using a vtkPLOT3DReader, and can
use "dims = pl3d.GetOutput().GetDimensions()" to get a 3-vector of the IJK
index dimensions that define the data set.  I now want to access points
using IJK indices, but the 'GetPoint()' routine takes a scalar point ID as
an argument.  How do I convert (i,j,k) into a point ID?  I've tried doing
the usual array-indexing calculations by hand, but that's clearly not the
right answer...

This is the private VTK discussion list.  Please keep messages on-topic.
Check the FAQ at: <>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at>.  For help, send message body containing
"info vtkusers" to the same address.     Live long and prosper.

More information about the vtkusers mailing list