Skip to content

CircleEntity (Circle/Cylinder Entity)

Creates and manages an Entity representing a circle or a cylinder.

Constructor

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

Parameters (StyleOptions)

ParameterTypeDefaultDescription
radiusNumber100Radius
heightNumber0Height of the circle relative to the ellipsoid surface
heightReferenceCesium.HeightReferenceCesium.HeightReference.NONEWhat the height is referenced to
diffHeightNumber100Height difference (the cylinder's own height); mutually exclusive with extrudedHeight
extrudedHeightnumber-Height of the extruded surface relative to the ellipsoid
extrudedHeightReferenceCesium.HeightReferenceCesium.HeightReference.NONEWhat the extruded height is referenced to
fillBooleantrueWhether the geometry is filled
materialTypeString"Color"Fill type; see MaterialType
materialCesium.MaterialProperty | Cesium.ColorCesium.Color.WHITEMaterial used for filling; overrides materialType and its parameters when specified
colorString"#3388ff"Fill color
opacityNumber1.0Opacity, range 0.0 - 1.0
outlineBooleanfalseWhether to draw an outline
outlineWidthNumber1Outline width
outlineColorString | Cesium.Color"#ffffff"Outline color
outlineOpacityNumber0.6Outline opacity
outlineStylePolylineEntity.StyleOptions-Full custom outline style; overrides outlineWidth, outlineColor, etc.
rotationNumber0Rotation in radians; 0 means north, counterclockwise positive
rotationDegreeNumber0Rotation in degrees (0–360); mutually exclusive with rotation
stRotationNumber0Texture rotation in radians; 0 means north, counterclockwise positive
stRotationDegreeNumber0Texture rotation in degrees (0–360); mutually exclusive with stRotation
distanceDisplayConditionBoolean | Cesium.DistanceDisplayConditionfalseToggle distance-based visibility, or specify camera distance thresholds
distanceDisplayCondition_farNumber100000Far distance
distanceDisplayCondition_nearNumber0Near distance
granularitynumberCesium.Math.RADIANS_PER_DEGREEAngular distance between points on the ellipse
numberOfVerticalLinesnumber16Number of vertical lines drawn along the perimeter
hasShadowsBooleanfalseWhether it casts shadows
shadowsCesium.ShadowModeCesium.ShadowMode.DISABLEDWhether the ellipse casts or receives shadows from light sources
clampToGroundStringfalseWhether to clamp to ground
classificationTypeCesium.ClassificationTypeCesium.ClassificationType.BOTHCoverage type when clamped (terrain, 3D Tiles, or both)
zIndexNumber0Render order; effective only when ellipse is constant and height/extrudedHeight are not set
addHeightNumber0Extra height added to existing coordinates (commonly used in layers)
highlightCircleEntity.StyleOptions-Highlight style on hover or click (type: 'click'); can also be toggled via openHighlight/closeHighlight
labelLabelEntity.StyleOptions-Text label options