[page:Curve] →

曲线路径([name])

一个扩展了[page:Curve]的抽象基类。CurvePath仅仅是一个已连接的曲线的数组,但保留了曲线的API。

构造函数

[name]()

构造函数中不传入参数。

属性

共有属性请参见其基类[page:Curve]。

[property:array curves]

[page:Curve Curves]数组。

[property:boolean autoClose]

是否自动闭合路径。

方法

共有方法请参见其基类[page:Curve]。

[method:null add]( [param:Curve curve] )

添加一条曲线到[page:.curves]数组中。

[method:null closePath]()

添加一条[page:LineCurve lineCurve]用于闭合路径。

[method:Float getCurveLengths]()

将[page:.curves]数组中曲线的长度相加。

源代码

[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]