playcanvas
Version:
PlayCanvas WebGL game engine
14 lines (11 loc) • 446 B
JavaScript
import { Vec3 } from '../../core/math/vec3.js';
import { BoundingBox } from '../../core/shape/bounding-box.js';
import { GSplatOctree } from './gsplat-octree.js';
class GSplatOctreeResource {
constructor(assetFileUrl, data){
this.aabb = new BoundingBox();
this.octree = new GSplatOctree(assetFileUrl, data);
this.aabb.setMinMax(new Vec3(data.tree.bound.min), new Vec3(data.tree.bound.max));
}
}
export { GSplatOctreeResource };