Taking planar slices from a 3-D shape