深浅模式
Polygon 面
sh
npm install @poggi/geography-primitive
pnpm add @poggi/geography-primitive
yarn add @poggi/geography-primitive基本用法
通过Polygon构建一个面
loading
贴地面
面可以与Terrain结合
loading
API
Attributes
| 属性名 | 说明 | 类型 | 默认值 |
|---|---|---|---|
| properties | 自定义数据集 | any | - |
methods
constructor(options: IPolygonConstructorOptions)
构造函数
Interfaces
IPolygonConstructorOptions
| 属性名 | 说明 | 类型 | 是否必选 | 默认值 |
|---|---|---|---|---|
| positions | 线条构造参数 | Cartesian2[] | 是 | - |
| color | 填充颜色 | Color | 是 | - |
| height | 海拔高度 | number | 否 | 0.0 |
| extrudedHeight | 拉伸高度 | number | 否 | 0.0 |
| vertexFormat | 定点格式 | VertexFormat | 否 | VertexFormat.DEFAULT |
