[vtkusers] ComputePointId

Ula Popov ula.popov at gmail.com
Wed Apr 7 22:06:29 EDT 2010


Hello all,

I use ComputePointId function and it looks like it has a bug.
My i, j, k go from 0 to n.
When n is the dimension of the grid.
(I have the same dimension for x,y and z axes)
3 nested loops.
Inside I call the function:
p = Grid->ComputePointId(ijk);

When I printed the values of p.
I didn't get the expected 0..n^3.

While
p = i*dimension*dimension + j*dimension + k;
worked fine.

Did anybody have the same problem?
Or maybe I just don't use the function correctly...


Thank you,
Uliana
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100407/4a2dc935/attachment.htm>


More information about the vtkusers mailing list