minimal BufferGeometry class to provide an API similar to THREE.
A geometry is plain data; the renderer creates and caches the GPU buffers
for it. Adding/removing attributes or changing the index bumps version,
which makes the renderer rebuild its buffers. To change the contents of an
existing attribute, write into attribute.data and set
attribute.needsUpdate = true.
minimal BufferGeometry class to provide an API similar to THREE.
A geometry is plain data; the renderer creates and caches the GPU buffers for it. Adding/removing attributes or changing the index bumps
version, which makes the renderer rebuild its buffers. To change the contents of an existing attribute, write intoattribute.dataand setattribute.needsUpdate = true.