converting ijk to point index?

gvwilson at nevex.com gvwilson at nevex.com
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...
Thanks,
Greg



-----------------------------------------------------------------------------
This is the private VTK discussion list.  Please keep messages on-topic.
Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at gsao.med.ge.com>.  For help, send message body containing
"info vtkusers" to the same address.     Live long and prosper.
-----------------------------------------------------------------------------





More information about the vtkusers mailing list