What I mean by the title is that I have a set of voxels that are arrayed so that they encompass a 3d space. The question is, can I compute the volume of this space in an efficient way?
I thought of starting inside of the space and checking the 6 directions from the beginning, and then checking the spaces beyond those, and so on until they hit a voxel, but that seems very inefficient to me.
In any case, any pointers are greatly appreciated.