copyArray method

BufferAttribute<NativeArray<num>> copyArray(
  1. TData array
)

Copy the array given here (which can be a normal array or TypedArray) into array.

See TypedArray.set for notes on requirements if copying a TypedArray.

Implementation

BufferAttribute copyArray(TData array) {
  this.array = array;
  return this;
}