Line 线条
基本用法
因受到WebGL图形渲染限制,普通线条无法设置其粗细度
更美的线条
使用该线条可以设置粗细度,但会增加些许性能开销
Options
其包含原THREE.Object3D
对象的所有属性和方法
IBasicLine
属性名 | 说明 | 类型 | 默认值 |
---|---|---|---|
lineColor | 线条颜色 | RTHREE.ColorRepresentation | 0xFFFFFF |
isDash | 是否为虚线 | boolean | false |
dashSize | 虚线段长度 | number | .5 |
gapSize | 虚线段间距 | number | .25 |
IBasicLineConstructorOption
继承自IBasicLine
属性名 | 说明 | 类型 | 默认值 |
---|---|---|---|
points | 线条拐点合集 | RTHREE.Vector3[] | - |
IStandardLine
属性名 | 说明 | 类型 | 默认值 |
---|---|---|---|
containerWidth | 容器宽度 | number | - |
containerHeight | 容器高度 | number | - |
lineWidth | 线条宽度 | number | 2 |
isDash | 是否为虚线 | boolean | false |
dashSize | 虚线段长度 | number | .5 |
gapSize | 虚线段间距 | number | .25 |
IStandardConstructorOption
继承自IStandardLine
属性名 | 说明 | 类型 | 默认值 |
---|---|---|---|
lineColor | 线条颜色 | RTHREE.Color | 0xFFFFFF |
points | 线条拐点合集 | RTHREE.Vector3[] | - |
RBasicLine
Methods
updateMaterial(options: IBasicLine)
更新线条材质
RStandardLine
Methods
updateMaterial(options: IStandardLine)
更新线条材质