/** * points:[ {x:-100,y:1,z:50}, {x:-500,y:1,z:50}, {x:-800,y:1,z:50}, {x:-800,y:1,z:420}, {x:-1400,y:1,z:420}, {x:-1400,y:1,z:480}, {x:-100,y:1,z:480}, {x:-100,y:1,z:50} ] */ function Route(option) { let curvePoints=[]; // 1.去取货 ------------------------------------------------------------------------ // z轴 curvePoints.push(option[0]); curvePoints.push({ x: option[0].x, y: option[0].y, z: option[1].z }); return new THREE.CatmullRomCurve3(curvePoints,false,'catmullrom',0.000000001); // 2. // let curvePoints=[]; // for(let i=0;i