voxel

What is the best way to handle 3d voxel data?

What is the best way to handle 3d voxel data? Question: At the moment I am storing voxels in a simple list. ([0,0,0,0,0,1,0,0,1 … ]) To retrieve voxel positon in the list I use this function: def getBlockKey(self, x, y, z): blockX = x % CFG_CHUNK_SIZE blockY = y % CFG_CHUNK_SIZE blockZ = z % …

Total answers: 2