#
mrzhssss
2022-04-07 80f43ee95117ae2e22077ca4a62d6606b9e22fb7
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;
 
 
}