From fdd27015125180b886e408ccda250d8e5e887059 Mon Sep 17 00:00:00 2001 From: sunzhenyu Date: Sat, 18 Sep 2021 09:56:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=89=E7=BB=B4cctv?= =?UTF-8?q?=E7=AB=99=E5=8F=B0=E8=BD=A8=E8=AE=A1=E7=AE=97=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jlmap3d/jl3dpassflow/model/passerstation.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/jlmap3d/jl3dpassflow/model/passerstation.js b/src/jlmap3d/jl3dpassflow/model/passerstation.js index 79e9742bd..01778e91d 100644 --- a/src/jlmap3d/jl3dpassflow/model/passerstation.js +++ b/src/jlmap3d/jl3dpassflow/model/passerstation.js @@ -148,15 +148,19 @@ export function PasserStation() { if(scope.stationlist[i].topsection == sections[j].code){ let points = []; - points.push(new THREE.Vector3(60.73-sections[j].lengthFact,0.06,-6.3)); - points.push(new THREE.Vector3(60.73,0.06,-6.3)); + let lo = -71 - (sections[j].leftStopPointOffset); + let ro = 60.73+(sections[j].lengthFact - sections[j].rightStopPointOffset); + points.push(new THREE.Vector3(lo,0.06,-6.3)); + points.push(new THREE.Vector3(ro,0.06,-6.3)); scope.stationlist[i].topcurve = new THREE.CatmullRomCurve3(points); topOver = true; } if(scope.stationlist[i].downsection == sections[j].code){ let points = []; - points.push(new THREE.Vector3(-71,0.06,28.68)); - points.push(new THREE.Vector3(-71+sections[j].lengthFact,0.06,28.68)); + let lo = -71 - (sections[j].leftStopPointOffset); + let ro = 60.73+(sections[j].lengthFact - sections[j].rightStopPointOffset); + points.push(new THREE.Vector3(lo ,0.06,28.68)); + points.push(new THREE.Vector3(ro,0.06,28.68)); scope.stationlist[i].downcurve = new THREE.CatmullRomCurve3(points); downOver = true; }