Skip to content

KBE3D / KBCore / Cesium / PolygonGraphics / ConstructorOptions

接口: ConstructorOptions

Initialization options for the PolygonGraphics constructor

属性

show?

optional show: boolean | Property

A boolean Property specifying the visibility of the polygon.


hierarchy?

optional hierarchy: Property | Cartesian3[] | PolygonHierarchy

A Property specifying the PolygonHierarchy.


height?

optional height: number | Property

A numeric Property specifying the altitude of the polygon relative to the ellipsoid surface.


heightReference?

optional heightReference: Property | HeightReference

A Property specifying what the height is relative to.


extrudedHeight?

optional extrudedHeight: number | Property

A numeric Property specifying the altitude of the polygon's extruded face relative to the ellipsoid surface.


extrudedHeightReference?

optional extrudedHeightReference: Property | HeightReference

A Property specifying what the extrudedHeight is relative to.


stRotation?

optional stRotation: number | Property

A numeric property specifying the rotation of the polygon texture counter-clockwise from north. Only has an effect if textureCoordinates is not defined.


granularity?

optional granularity: number | Property

A numeric Property specifying the angular distance between each latitude and longitude point.


fill?

optional fill: boolean | Property

A boolean Property specifying whether the polygon is filled with the provided material.


material?

optional material: Color | MaterialProperty

A Property specifying the material used to fill the polygon.


outline?

optional outline: boolean | Property

A boolean Property specifying whether the polygon is outlined.


outlineColor?

optional outlineColor: Color | Property

A Property specifying the Color of the outline.


outlineWidth?

optional outlineWidth: number | Property

A numeric Property specifying the width of the outline.


perPositionHeight?

optional perPositionHeight: boolean | Property

A boolean specifying whether or not the height of each position is used.


closeTop?

optional closeTop: boolean

When false, leaves off the top of an extruded polygon open.


closeBottom?

optional closeBottom: boolean

When false, leaves off the bottom of an extruded polygon open.


arcType?

optional arcType: Property | ArcType

The type of line the polygon edges must follow.


shadows?

optional shadows: Property | ShadowMode

An enum Property specifying whether the polygon casts or receives shadows from light sources.


distanceDisplayCondition?

optional distanceDisplayCondition: Property | DistanceDisplayCondition

A Property specifying at what distance from the camera that this polygon will be displayed.


classificationType?

optional classificationType: Property | ClassificationType

An enum Property specifying whether this polygon will classify terrain, 3D Tiles, or both when on the ground.


zIndex?

optional zIndex: number | ConstantProperty

A property specifying the zIndex used for ordering ground geometry. Only has an effect if the polygon is constant and neither height or extrudedHeight are specified.


textureCoordinates?

optional textureCoordinates: Property | PolygonHierarchy

A Property specifying texture coordinates as a PolygonHierarchy of Cartesian2 points. Has no effect for ground primitives.

KBE3D @3.0.0 Copyright © 2024-present KBE3D