Hi,<br><br>If n is your dimension, then your i,j,k go from 0 to n-1. Should it be the mistake here ?<br><br>HTH<br>Jerome<br><br><div class="gmail_quote">2010/4/8 David Doria <span dir="ltr"><<a href="mailto:daviddoria%2Bvtk@gmail.com">daviddoria+vtk@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">On Wed, Apr 7, 2010 at 10:06 PM, Ula Popov <<a href="mailto:ula.popov@gmail.com">ula.popov@gmail.com</a>> wrote:<br>
> Hello all,<br>
><br>
> I use ComputePointId function and it looks like it has a bug.<br>
> My i, j, k go from 0 to n.<br>
> When n is the dimension of the grid.<br>
> (I have the same dimension for x,y and z axes)<br>
> 3 nested loops.<br>
> Inside I call the function:<br>
> p = Grid->ComputePointId(ijk);<br>
><br>
> When I printed the values of p.<br>
> I didn't get the expected 0..n^3.<br>
><br>
> While<br>
> p = i*dimension*dimension + j*dimension + k;<br>
> worked fine.<br>
><br>
> Did anybody have the same problem?<br>
> Or maybe I just don't use the function correctly...<br>
><br>
><br>
> Thank you,<br>
> Uliana<br>
<br>
</div></div>Can you provide a compilable piece of code that demonstrates this?<br>
<br>
Thanks,<br>
<br>
David<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br>