[vtkusers] ComputePointId

David Doria daviddoria+vtk at gmail.com
Thu Apr 8 10:07:00 EDT 2010


On Wed, Apr 7, 2010 at 10:06 PM, Ula Popov <ula.popov at gmail.com> wrote:
> 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

Can you provide a compilable piece of code that demonstrates this?

Thanks,

David



More information about the vtkusers mailing list