From 4a6b004621c06824ef2b650679473412558024e4 Mon Sep 17 00:00:00 2001 From: sunzhenyu Date: Fri, 22 Jan 2021 16:47:24 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../edit/testEditorModel/SectionList.js | 18 ++++-------------- .../edit/testEditorModel/StationStandList.js | 2 +- 2 files changed, 5 insertions(+), 15 deletions(-) diff --git a/src/jlmap3d/edit/testEditorModel/SectionList.js b/src/jlmap3d/edit/testEditorModel/SectionList.js index 66ead2811..f5933a30e 100644 --- a/src/jlmap3d/edit/testEditorModel/SectionList.js +++ b/src/jlmap3d/edit/testEditorModel/SectionList.js @@ -213,13 +213,8 @@ export function SectionList() { stopsections.push(realstopsection); } - - console.log(stopsections); - stopsections.sort(compare("posx")) - - let leng1 = 0; let leng2 = 0; @@ -330,13 +325,12 @@ export function SectionList() { createsection(stopsections[0].reals[1].code,downstartpoint,stopsections[0].reals[1].code,34.8); for(let i=1,leni=stopsections.length;i Date: Tue, 26 Jan 2021 16:51:32 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=89=E7=BB=B4?= =?UTF-8?q?=E8=BD=A8=E9=81=93=E7=94=9F=E6=88=90=E5=8F=82=E6=95=B0=EF=BC=8C?= =?UTF-8?q?=E4=BF=AE=E6=94=B9tdt=E7=94=9F=E6=88=90=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jlmap3d/main/newmodel/SectionListN.js | 6 +++--- src/jlmap3d/main/newmodel/TdtList.js | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/jlmap3d/main/newmodel/SectionListN.js b/src/jlmap3d/main/newmodel/SectionListN.js index 11d4c622c..11aacbc5b 100644 --- a/src/jlmap3d/main/newmodel/SectionListN.js +++ b/src/jlmap3d/main/newmodel/SectionListN.js @@ -24,7 +24,7 @@ this.loadpromise = function(sectionList,sectiondata,rails,scene,assetloader){ texture.wrapS = texture.wrapT = THREE.RepeatWrapping; texture.anisotropy = 0; texture.magFilter = THREE.NearestFilter; - texture.minFilter = THREE.NearestFilter; + texture.minFilter = THREE.NearestFilter; texture.repeat.set( 1,1); var selectmaterial = new THREE.MeshPhongMaterial( { map: texture,transparent:true,alphaTest:0.1 } ); @@ -108,13 +108,13 @@ this.loadpromise = function(sectionList,sectiondata,rails,scene,assetloader){ if(Math.abs(newsection.railpoint[0].y-newsection.railpoint[2].y)>0.01){ closedSpline = new THREE.CatmullRomCurve3( [ new THREE.Vector3(newsection.railpoint[0].x,newsection.railpoint[0].y,newsection.railpoint[0].z), - new THREE.Vector3(newsection.railpoint[1].x,newsection.railpoint[1].y,newsection.railpoint[1].z+0.001), + new THREE.Vector3(newsection.railpoint[1].x,newsection.railpoint[1].y,newsection.railpoint[1].z+0.0001), new THREE.Vector3(newsection.railpoint[2].x,newsection.railpoint[2].y,newsection.railpoint[2].z) ] ); }else{ closedSpline = new THREE.CatmullRomCurve3( [ new THREE.Vector3(newsection.railpoint[0].x,newsection.railpoint[2].y,newsection.railpoint[0].z), - new THREE.Vector3(newsection.railpoint[1].x,newsection.railpoint[2].y,newsection.railpoint[1].z+0.0015), + new THREE.Vector3(newsection.railpoint[1].x,newsection.railpoint[2].y,newsection.railpoint[1].z+0.0001), new THREE.Vector3(newsection.railpoint[2].x,newsection.railpoint[2].y,newsection.railpoint[2].z) ] ); } diff --git a/src/jlmap3d/main/newmodel/TdtList.js b/src/jlmap3d/main/newmodel/TdtList.js index 9dc369316..414be4544 100644 --- a/src/jlmap3d/main/newmodel/TdtList.js +++ b/src/jlmap3d/main/newmodel/TdtList.js @@ -17,7 +17,7 @@ export function TdtList() { stopSections[sectionData[i].code] = sectionData[i]; } } - + console.log(stationData); for(let k in stationData){ for(let i=0;i