Skip to content

PolygonPrimitive (Polygon Primitive) ​

Create and manage a polygon primitive object.

Constructor ​

ts
new ge3d.feature.PolygonPrimitive(options?: {}): PolygonPrimitive

Parameters (StyleOptions) ​

ParameterTypeDefaultDescription
positionsArray-Coordinate position array
heightNumber0Height
fillBooleantrueWhether to fill
materialString/Object#FFFFFFMaterial
outlineBooleanfalseWhether to show outline
outlineColorString#000000Outline color
outlineWidthNumber1Outline width

Properties ​

PropertyTypeDescription
positionsArrayCoordinate position array
showBooleanWhether to display

Methods ​

setStyle ​

Set style

ts
setStyle(style: Object): void

remove ​

Remove object

ts
remove(): void