Buckets:

immErfanrajabee/bd / node_modules /three /src /core /InstancedBufferGeometry.js
imerfanrajabee's picture
download
raw
870 Bytes
import { BufferGeometry } from './BufferGeometry.js';
/**
* An instanced version of a geometry.
*/
class InstancedBufferGeometry extends BufferGeometry {
/**
* Constructs a new instanced buffer geometry.
*/
constructor() {
super();
/**
* This flag can be used for type testing.
*
* @type {boolean}
* @readonly
* @default true
*/
this.isInstancedBufferGeometry = true;
this.type = 'InstancedBufferGeometry';
/**
* The instance count.
*
* @type {number}
* @default Infinity
*/
this.instanceCount = Infinity;
}
copy( source ) {
super.copy( source );
this.instanceCount = source.instanceCount;
return this;
}
toJSON() {
const data = super.toJSON();
data.instanceCount = this.instanceCount;
data.isInstancedBufferGeometry = true;
return data;
}
}
export { InstancedBufferGeometry };

Xet Storage Details

Size:
870 Bytes
·
Xet hash:
2f63b6c14220de7ce37b805585fa65e5434269a32d05dc3ba144bb91bf0139d0

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.