An implementation of the marching cubes algorithm, which walks a 3D scalar field cube by cube and extracts a polygonal surface wherever it crosses a chosen threshold. The result is rendered in OpenGL.
A classic technique for turning volumetric data — voxel grids, implicit functions, scan data — into a mesh a renderer can draw. Full source is on GitHub.