深浅模式
Path 路径
说明
用于绘制路线,与Line类似,但Path可以配合贴图实现例如疏散路径示意图之类的功能
安装
sh
npm install @poggi/three-entity
pnpm add @poggi/three-entity
yarn add @poggi/three-entityloading
API
PathGeometry类
Methods
constructor(initData: number | IPathGeometryOption,generateUv2: boolean = !1)
构造函数
Interfaces
IPathGeometryOption
| 属性名 | 说明 | 类型 | 是否必选 | 默认值 |
|---|---|---|---|---|
| pathPointList | 路径坐标列表 | PathPointList | 是 | - |
| options | 构建参数 | IGeneratePathVertexDataOption | 是 | - |
| usage | 构建参数 | Usage | 否 | - |
IGeneratePathVertexDataOption
| 属性名 | 说明 | 类型 | 是否必选 | 默认值 |
|---|---|---|---|---|
| width | 宽度 | number | 否 | 0.1 |
| progress | 进度 | 进度 | 否 | 1 |
| arrow | 方向,是否正向 | boolean | 否 | false |
| side | 路径带宽沿切线法向的哪一侧生成 | left | right | both | 否 | both |
