Marching cubes algorithm.