Example

repara

In order to get a piecewise curve with continuous tangent, it suffices that the segments that are adjacent to the union are parallel, although tangent vectors may be only proportional.