加功能

This commit is contained in:
2025-08-29 21:06:21 +08:00
parent 58829f2a80
commit f29fe5776e
11 changed files with 141 additions and 45 deletions

View File

@@ -14,9 +14,9 @@
import * as THREE from 'three'
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls'
import { mapGetters } from 'vuex'
import { points } from '../../config/point.js'
import { points1 } from '../../config/point1.js'
import { points2 } from '../../config/point2.js'
// import { points } from '../../config/point.js'
// import { points1 } from '../../config/point1.js'
// import { points2 } from '../../config/point2.js'
// 常量定义
const UPDATE_INTERVAL = 800
@@ -295,18 +295,18 @@ export default {
},
init() {
// this.initWebSocket()
this.isLoading = false;
const pointData = points.data
this.updatePointCloud(pointData);
setTimeout(() => {
const arr = points1.data
this.updatePointCloud(arr);
}, 1000)
setTimeout(() => {
const arr = points2.data
this.updatePointCloud(arr);
}, 2000)
this.initWebSocket()
// this.isLoading = false;
// const pointData = points.data
// this.updatePointCloud(pointData);
// setTimeout(() => {
// const arr = points1.data
// this.updatePointCloud(arr);
// }, 1000)
// setTimeout(() => {
// const arr = points2.data
// this.updatePointCloud(arr);
// }, 2000)
},
updatePointCloud(points) {