setIndex method
void
setIndex(
- dynamic index
Implementation
void setIndex(index) {
if (index is List) {
final list = index.map<int>((e) => e.toInt()).toList();
final max = list.getMaxValue();
if (max != null && max > 65535) {
this.index = Uint32BufferAttribute.fromList(list, 1, false);
}
else {
this.index = Uint16BufferAttribute.fromList(list, 1, false);
}
}
else {
this.index = index;
}
}