addGroup method

void addGroup(
  1. int start,
  2. int count, [
  3. int materialIndex = 0
])
inherited

Adds a group to this geometry; see the groups property for details.

Implementation

void addGroup(int start, int count, [int materialIndex = 0]) {
  groups.add({
    "start": start,
    "count": count,
    "materialIndex": materialIndex,
  });
}