#
luxiaotao1123
2021-12-13 4b3467e05cb0e2b68bc3e8ef08827e9e874562c8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
 
// 将曲线显示出来
function RouteLine(curve,option) {
    let points = curve.getPoints(100);
    let geometry = new THREE.Geometry();
    //geometry.vertices = curve.getSpacedPoints(100);
    // 把从曲线轨迹上获得的顶点坐标赋值给几何体
    geometry.vertices = points;
    var material = new THREE.LineBasicMaterial({
        color: 0x4488ff
    });
    let line = new THREE.Line(geometry, material);
    line.uuid=option.No;
    line.name=option.Name;
    line.type="Route";
    return line;
}