triangles method
Returns an iterable of all triangle indices. Each triangle is represented by 3 point indices.
Implementation
Iterable<List<int>> triangles() sync* {
for (int i = 0; i < trianglesLength; i++) {
yield [
triangleIndices[i * 3],
triangleIndices[i * 3 + 1],
triangleIndices[i * 3 + 2],
];
}
}