When a hospital MRI scanner finishes its work, the result is not a picture — it is a grid of numbers. Each tiny voxel (a 3D pixel) stores a density value: how much the tissue at that point resisted the magnetic field. Bone is dense; air is not; soft tissue lives somewhere between.
To make the scan useful, doctors need a surface: the boundary between one material and another. Draw a threshold value and ask — which voxels are above it and which are below? The surface you want is the shape that separates them.
That problem looks impossibly hard at first. A real scan has hundreds of millions of voxels; the surface can be any shape imaginable. But in 1987, William Lorensen and Harvey Cline discovered a beautiful shortcut: no matter how complicated the surface is, each individual cube of eight voxels can only be in one of 256 possible states. Pre-compute what triangles to draw for each state, store the answer in a lookup table, and then march through the grid one cube at a time — that is the Marching Cubes algorithm.
It is fast, it is simple, and it powered the very first real-time 3D reconstructions of medical scans. Today it still runs — in a slightly refined form — under nearly every 3D volume viewer in medicine, science, and game development.
Comments
Loading comments...