CS116b/CS216
Chris Pollett
Apr 23, 2014
Y in | Y on | Y out | |
---|---|---|---|
X in | in | on | out |
X on | on | on/out | out |
X out | out | out | out |
For each voxel Label the voxel vertices in some canonical way 0...7 let total_in = 0 For each vertex i of the determine if it is in/on or out of the surface if in/on let total_in += 2^i Look-up total_in in a table of 256 voxels surfaces output that shape for this voxel.