Folding a shape along the line