setTriangleIndices method

void setTriangleIndices(
  1. int triangle,
  2. int v1,
  3. int v2,
  4. int v3,
)

Set the corresponding vertices for the triangle indices.

Implementation

void setTriangleIndices(int triangle, int v1, int v2, int v3) {
  final offset = triangle * 3;
  ixList[offset + 0] = v1;
  ixList[offset + 1] = v2;
  ixList[offset + 2] = v3;
}