Thanks for the answer I understand what you are saying. However, this makes the use of the indexToWorld function on imageData a bit strange no?
The imageData grid has 10x10x1 voxels and it has a function indexToWorld. It makes sense to me that if I were to ask the world location of a voxel and I draw this location that this world coordinate is either consistently centered inside of this voxel or in a consistent corner (e.g. bottom left) of this voxel. But this is not the case.
To clarify, in the following image, I have drawn a little square in each world coordinate belonging to the voxel.
What would the best way be to for example always draw in the bottom left corner of the pixel? Is there another function than indexToWorld?
Thank you so much!