@sauskylark/potree
Version:
WebGL point cloud viewer
51 lines (37 loc) • 830 B
JavaScript
import * as THREE from "../libs/three.js/build/three.module.js";
import { EventDispatcher } from "./EventDispatcher.js";
export class PointCloudTreeNode extends EventDispatcher{
constructor(){
super();
this.needsTransformUpdate = true;
}
getChildren () {
throw new Error('override function');
}
getBoundingBox () {
throw new Error('override function');
}
isLoaded () {
throw new Error('override function');
}
isGeometryNode () {
throw new Error('override function');
}
isTreeNode () {
throw new Error('override function');
}
getLevel () {
throw new Error('override function');
}
getBoundingSphere () {
throw new Error('override function');
}
};
export class PointCloudTree extends THREE.Object3D {
constructor () {
super();
}
initialized () {
return this.root !== null;
}
};