Appearance
PolygonPrimitive (Polygon Primitive)
Create and manage a polygon primitive object.
Constructor
ts
new ge3d.feature.PolygonPrimitive(options?: {}): PolygonPrimitiveParameters (StyleOptions)
| Parameter | Type | Default | Description |
|---|---|---|---|
| positions | Array | - | Coordinate position array |
| height | Number | 0 | Height |
| fill | Boolean | true | Whether to fill |
| material | String/Object | #FFFFFF | Material |
| outline | Boolean | false | Whether to show outline |
| outlineColor | String | #000000 | Outline color |
| outlineWidth | Number | 1 | Outline width |
Properties
| Property | Type | Description |
|---|---|---|
| positions | Array | Coordinate position array |
| show | Boolean | Whether to display |
Methods
setStyle
Set style
ts
setStyle(style: Object): voidremove
Remove object
ts
remove(): void