Skip to content

ModelEntity (glTF Model Entity Object)

Create and manage glTF model Entity objects.

Constructor

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

Parameters (StyleOptions)

ParameterTypeDefaultDescription
urlString | Cesium.Resource-String or resource property of glTF model URI
scaleNumber1Scale
headingNumber0Heading angle (degrees, 0-360)
pitchNumber0Pitch angle (degrees, 0-360)
rollNumber0Roll angle (degrees, 0-360)
minimumPixelSizenumber0.0Specify approximate minimum pixel size of model regardless of scale
maximumScalenumber-Maximum scale size of model. Upper limit of minimumPixelSize
fillBooleanfalseWhether to fill, specify blending with model rendering color
colorString | Cesium.Color"#3388ff"Color
opacityNumber1.0Opacity, range 0.0-1.0
colorBlendModeCesium.ColorBlendModeColorBlendMode.HIGHLIGHTSpecify how color blends with model
colorBlendAmountnumber0.5When colorBlendMode is MIX, specify numeric property of color intensity. Value of 0.0 means model rendering color, value of 1.0 means pure color, any value in between means blend of both
silhouetteBooleanfalseWhether to have silhouette
silhouetteColorString | Cesium.Color"#ffffff"Silhouette color
silhouetteSizeNumber2Silhouette width
silhouetteAlphaNumber0.8Silhouette opacity
distanceDisplayConditionBoolean | Cesium.DistanceDisplayConditionfalseWhether to display by distance or specify at what distance from camera this will be displayed
distanceDisplayCondition_nearNumber0Minimum distance
distanceDisplayCondition_farNumber100000Maximum distance
distanceDisplayPointPointEntity.StyleOptions-Style of pixel point object displayed when view distance exceeds certain distance (defined by distanceDisplayCondition_far), only effective when distanceDisplayCondition is set
distanceDisplayBillboardBillboardEntity.StyleOptions-Style of icon object displayed when view distance exceeds certain distance (defined by distanceDisplayCondition_far), only effective when distanceDisplayCondition is set
hasShadowsBooleantrueWhether to cast shadows
shadowsCesium.ShadowModeShadowMode.ENABLEDSpecify whether model casts or receives shadows from light sources
clampToGroundBooleanfalseWhether to clamp to ground
heightReferenceCesium.HeightReferenceCesium.HeightReference.NONEProperty specifying what the height is relative to
incrementallyLoadTexturesbooleantrueDetermine whether textures will continue to stream in after model loads
runAnimationsbooleantrueSpecify whether glTF animations specified in model should start
clampAnimationsbooleantrueSpecify whether glTF animations should maintain last pose when no keyframes
imageBasedLightingFactorCesium.Cartesian2new Cartesian2(1.0, 1.0)Specify contribution from image-based diffuse and specular lighting
lightColorColor-Property specifying color of light when shading model. When undefined, scene's light color is used instead
nodeTransformationsCesium.PropertyBag | Object<string, Cesium.TranslationRotationScale>-Object where keys are node names and values are TranslationRotationScale properties describing transformations to apply to that node. Transformation is applied after node's existing transformation (as specified in glTF) and does not replace node's existing transformation
articulationsCesium.PropertyBag | Object<string, number>-An object, where keys are composed of an articulation name, a single space, and a stage name, and the values are numeric properties
clippingPlanesCesium.ClippingPlaneCollection-Collection of Plane planes used to clip model
setHeightNumber0Specify coordinate height value (commonly used in layer configuration)
addHeightNumber0Height value added to existing coordinates (commonly used in layer configuration)
highlightModelEntity.StyleOptions-Highlight style on hover or click (type:'click'), can also be toggled via openHighlight/closeHighlight methods after creating Graphic
labelLabelEntity.StyleOptions-Support for additional text display