[vtkusers] ComputePointId

Jérôme jerome.velut at gmail.com
Thu Apr 8 10:20:24 EDT 2010


Hi,

If n is your dimension, then your i,j,k go from 0 to n-1. Should it be the
mistake here ?

HTH
Jerome

2010/4/8 David Doria <daviddoria+vtk at gmail.com <daviddoria%2Bvtk at gmail.com>>

> 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
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100408/91cdd0c4/attachment.htm>


More information about the vtkusers mailing list