triangles property

Uint32List triangles

The list of triangles in the triagulation.

Each three elements are the three points of a triangle given by indices into coords:

int a = triangles[i];
int b = triangles[i + 1];
int c = triangles[i + 2];

double ax = coords[2 * a];
double ay = coords[2 * a + 1];

Implementation

Uint32List get triangles => Uint32List.sublistView(
      _triangles,
      0,
      _trianglesLen,
    );