/**
* 扩展UE样条线
*/
class Spline extends THING.BaseLine {
static defaultTagArray = ['Spline'];
constructor(param) {
super(param);
this.id = this.name = "Spline";
}
get isSpline() {
return true;
}
get type() {
return "Spline";
}
/**
* 返回拐点
*/
get points() {
return this.bodyNode.getSimplePoints();
}
/**
*
* @param {Int} distance
* @returns 根据间隔距离返回所有点(单位:m)
*/
getPointsByDistance(distance = 1){
return this.bodyNode.getPointsByDistance(distance);
}
getLength() {
return this.bodyNode.getSplineLength();
}
}
module.exports = Spline;