Redesign pipe_surface in terms of pipe_region.