STEP 3: Trace contours with a marching cubes algorithm.