// 轨道控制器开始结束hook export function handleStartChange(e) { // console.log("开始"); } export function handleEndChange(e) { // 围绕点到照相机的位置 // console.log("结束"); // console.log(this.orbitControls.object.position); // console.log(this.camera.position, this.position); // console.log( // this.camera.position.x - this.position.x, // this.camera.position.y - this.position.y, // this.camera.position.z - this.position.z // ); // const cx = // (this.scene // .getObjectByName("point_001_br") // .getWorldPosition(new this.THREE.Vector3()).x + // this.scene // .getObjectByName("point_001_bl") // .getWorldPosition(new this.THREE.Vector3()).x) / // 2; // const cy = // (this.scene // .getObjectByName("point_001_br") // .getWorldPosition(new this.THREE.Vector3()).y + // this.scene // .getObjectByName("point_001_bl") // .getWorldPosition(new this.THREE.Vector3()).y) / // 2; // const cz = // (this.scene // .getObjectByName("point_001_br") // .getWorldPosition(new this.THREE.Vector3()).z + // this.scene // .getObjectByName("point_001_bl") // .getWorldPosition(new this.THREE.Vector3()).z) / // 2; // console.log(cx, cy, cz); // console.log( // this.scene // .getObjectByName("point_001_tr") // .getWorldPosition(new this.THREE.Vector3()) }