Spaces:
Running
Running
Download backend/libs/three/core/InstancedBufferGeometry.js from k-l-lambda/starry: direct link, hf CLI and curl.
- Browser
- Download file 640 Bytes
-
https://huggingface.co/spaces/k-l-lambda/starry/resolve/main/backend/libs/three/core/InstancedBufferGeometry.js
- Command line
-
hf download hf://spaces/k-l-lambda/starry/backend/libs/three/core/InstancedBufferGeometry.js
-
curl -L -o InstancedBufferGeometry.js https://huggingface.co/spaces/k-l-lambda/starry/resolve/main/backend/libs/three/core/InstancedBufferGeometry.js
640 Bytes
| import { BufferGeometry } from './BufferGeometry.js'; | |
| class InstancedBufferGeometry extends BufferGeometry { | |
| constructor() { | |
| super(); | |
| this.type = 'InstancedBufferGeometry'; | |
| this.instanceCount = Infinity; | |
| } | |
| copy(source) { | |
| super.copy(source); | |
| this.instanceCount = source.instanceCount; | |
| return this; | |
| } | |
| clone() { | |
| return new this.constructor().copy(this); | |
| } | |
| toJSON() { | |
| const data = super.toJSON(this); | |
| data.instanceCount = this.instanceCount; | |
| data.isInstancedBufferGeometry = true; | |
| return data; | |
| } | |
| } | |
| InstancedBufferGeometry.prototype.isInstancedBufferGeometry = true; | |
| export { InstancedBufferGeometry }; | |