Polylines from rotated rectangles