edges method

Iterable<(int, int)> edges()

Returns the edges of the triangulation as pairs of point indices.

Implementation

Iterable<(int, int)> edges() sync* {
  for (int e = 0; e < triangleIndices.length; e++) {
    if (e > halfedges[e]) {
      final p = triangleIndices[e];
      final q = triangleIndices[_nextEdge(e)];
      yield (p, q);
    }
  }
}