make_segments_parametric#

ClosedCurve.make_segments_parametric(segments_to_parametrize: List[Parametrize])#

Make multiple segments parametric for optimization.

This is a convenience function that: 1. Splits each segment into sub-segments with intermediate vertices 2. Makes those intermediate vertices parametric

Parameters:
segments_to_parametrizeList[Parametrize]

List of (segment_index, num_added_vertices, movement, bounds) tuples where: segment_index: 1-based segment index, num_added_vertices: Number of intermediate vertices to add (not including start/end), movement: Movement type for the vertices (see _make_segment_parametric), bounds: Optional bounds for the parameters (see _make_segment_parametric).