Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: List<ValueTuple<int, int, int>> TriangleVerticesFromEdges(IList<PointD>, IEnumerable<ValueTuple<int, int>>, bool)

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.
boolreverseOrder 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.