find_segments_connecting#

ClosedCurve.find_segments_connecting(start_vertex: int, end_vertex: int) List[int]#

Find all segments that connect two vertices (possibly through intermediate vertices).

This is useful after splitting segments, when you want to find which segments now connect the original vertices.

Parameters:
start_vertexint

1-based start vertex index.

end_vertexint

1-based end vertex index.

Returns:
List[int]

List of 1-based segment indices connecting the vertices. List of 1-based segment indices that connect start_vertex to end_vertex (possibly through intermediate vertices)