CurveGenerator flush() simplifies generating of final segments.