Declaration
public static List<ValueTuple<int, int, int>> TriangleVerticesFromEdges(
IList<PointD> vertices,
IEnumerable<ValueTuple<int, int>> edges,
bool reverseOrder = false
)Summary
Finds triangles in a valid triangulation defined by a list of edges.
Parameters
| IList<PointD> | vertices |
Vertices of the graph. |
| IEnumerable<ValueTuple<int, int>> | edges |
Edges between vertices, by index. Edge direction does not matter; there must be at most one
edge between any pair of vertices. |
| bool | reverseOrder |
When false, triangle vertices are ordered by increasing angle, otherwise by decreasing angle. |
Returns
A list of triangles, each represented by its three nodes, in arbitrary order.