maxogden/voxel — pull request #2 by substack (2013-01-07 10:49:20+00:00)
Title: fix indexing for negative voxel coordinates

When the coordinates are negative, merely adding `size` isn't enough. This fix adds size to the modulo of size and then takes the modulo of THAT. Negative numbers under modulo behave completely silly!