groupsort_isolines
- groupsort_isolines(vertices, edges, indices)[source]
Group and sort isoline edges into continuous polylines.
- Parameters:
- verticeslist[list[float]]
The coordinates of the isoline vertices.
- edgeslist[list[int]]
The edges between vertices forming the isolines.
- indiceslist[int]
An index per edge indicating to which isoline it belongs.
- Returns:
- list[list[compas.geometry.Polyline]]
A list of polyline groups, where each group corresponds to an isoline level. Each polyline represents a continuous segment of an isoline.
Notes
The function attempts to create the minimum number of polylines by connecting edges that share vertices and have the same isovalue.