From 7923c73fd7910957114024c76b356c378fc0e60e Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@63.com>
Date: 星期五, 08 七月 2022 08:40:42 +0800
Subject: [PATCH] Merge branches 'local' and 'master' of http://47.97.1.152:5880/r/ASRS-3D into local
---
static/js/object/Route.js | 21 ++++++++++++++++-----
1 files changed, 16 insertions(+), 5 deletions(-)
diff --git a/static/js/object/Route.js b/static/js/object/Route.js
index 9388143..3521d37 100644
--- a/static/js/object/Route.js
+++ b/static/js/object/Route.js
@@ -33,11 +33,22 @@
// return new THREE.CatmullRomCurve3(curvePoints,false,'centripetal',0.000000001);
- return new THREE.LineCurve3(option[0],new THREE.Vector3(
- option[0].x,
- option[0].y,
- option[1].z
- ));
+ // return new THREE.LineCurve3(option[0],new THREE.Vector3(
+ // option[0].x,
+ // option[0].y,
+ // option[1].z
+ // ));
+
+ for (let i = 0;i<option.length;i++) {
+ curvePoints.push(
+ new THREE.Vector3(
+ option[i].x,
+ option[i].y,
+ option[i].z
+ )
+ );
+ }
+ return new THREE.CatmullRomCurve3(curvePoints,false,'centripetal',0.000000001);
--
Gitblit v1.9.1