.
18516761980
2022-04-07 5972c5e0070c00d65eb9d08b4c49357dbf3808c4
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;
 
 
}