import * as THREE from 'three' import { System } from '../../src' import { PointCloudEntity } from '../../src' export class ExampleSystem extends System { async addExampleEntity() { const pointCloudEntity = new PointCloudEntity ({ name: 'pointCloud1', // 实体名称 position: new THREE.Vector3(0, 0, 0), // 初始位置 rotation: new THREE.Euler(0, 0, 0), // 初始旋转 path: './a.ply', }) await this.addEntity(pointCloudEntity) } onAdded(): void { this.addExampleEntity() } onRemoved(): void {} onUpdating(deltaTime: number): void {} }