clone method

data - This object holds shared array buffers required for properly cloning geometries with interleaved attributes.

Implementation

InterleavedBuffer clone(InterleavedBuffer data) {
  // data.arrayBuffers ??= {};

  //TODO: InterleavedBuffer clone

  // if ( this.array.buffer._uuid == null ) {

  // 	this.array.buffer._uuid = MathUtils.generateUUID();

  // }

  // if ( data.arrayBuffers[ this.array.buffer._uuid ] == null ) {

  // 	data.arrayBuffers[ this.array.buffer._uuid ] = this.array.slice( 0 ).buffer;

  // }

  // const array = new this.array.constructor( data.arrayBuffers[ this.array.buffer._uuid ] );

  final ib = InterleavedBuffer(array, stride);
  ib.setUsage(usage);

  return ib;
}