new FdPlane(viewer, id)
Parameters:
Name | Type | Description |
---|---|---|
viewer |
Freedo.Viewer | |
id |
string | |
opt.positions |
Array.<Freedo.Cartesian3> | 路径关键点,没有指定时启用手动选点 |
opt.width |
number | 面的宽度 |
opt.rate |
number | 道路转弯时插值的密度,默认36 |
opt.smooth |
number | 道路转弯半径系数,默认1.5,转弯半径为道路总宽度一半乘以该系数 |
opt.color |
Freedo.Color | 设置颜色,如果指定纹理贴图时此属性会被忽略 |
opt.image |
string | 纹理贴图 |
opt.offsetHeight |
number | 手动绘制时的偏移高度,默认为0.0 |
Methods
-
on(listener [, scope])
-
注册事件捕捉
Parameters:
Name Type Argument Description listener
FdModel.FdModelManager~FdModelManagerCallback 当有事件触发时被执行的函数。
scope
Object <optional>
listener函数执行时的绑定的对象。
Returns:
返回一个函数,调用该函数可以取消监听。
- Type
- Freedo.Event~RemoveCallback