made the slicing work for any degree tessellation