Skip to content

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