.
18516761980
2022-03-09 eddfc83f417efa0c3fd60f4c994abc6d3c92b100
1
2
3
4
5
6
7
8
9
10
11
12
13
function Route(option) {
 
    let curvePoints=new Array();
    for(let i=0;i<option.points.length;i++)
    {
        let point=option.points[i];
        curvePoints.push(new THREE.Vector3(point.x, point.y, point.z));
    }
    let curve = new THREE.CatmullRomCurve3(curvePoints,false/*是否闭合*/,'catmullrom',0.000000001);
    return curve;
 
 
}