enforce smallest_line_segment_squared constraint on both segments of a vertex
enforce smallest_line_segment_squared constraint on both segments of a vertex

within the loop it was only checking the previous segment,
at the end of the loop it was requiring either segment instead of both

Ultimaker/CuraEngine,Ultimaker/CuraEngine