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; }