Somebody has already solved this question for me a while ago. See here
I never got an answer on the math behind it but my understanding is its an allocating 2d matrix of voxels.
Somebody has already solved this question for me a while ago. See here
I never got an answer on the math behind it but my understanding is its an allocating 2d matrix of voxels.