setIndex method
Sets the index list, the list can be a List
Implementation
BufferGeometry setIndex(dynamic index) {
if (index is BufferAttribute) {
this.index = index;
} else {
this.index = getMax(index) > 65535 ? Uint32BufferAttribute(index, 1) : Uint16BufferAttribute(index, 1);
}
return this;
}