In this answer by @RayMairlot, I learned how to generate a mesh surface that looks like many small cubes stacked in the shape of a sphere (or other meshes). Remesh -> Blocks
Because I can't leave well-enough alone, I would like to see exactly how this algorithm works, and what an Octree is. Where can I find the C code (?) behind this modifier?