18516761980
2022-02-10 b569127f49d87f49d29a855d57e335129076d9f1
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;
 
 
}