ConstructorOptions

sealed interface ConstructorOptions(source)

Properties

Link copied to clipboard
abstract var allowPicking: Boolean?

When true, each geometry instance will only be pickable with Scene.pick. When false, GPU memory is saved. Default value - true

Link copied to clipboard
abstract var appearance: Appearance?

The appearance used to render the primitive. Defaults to a flat PerInstanceColorAppearance when GeometryInstances have a color attribute.

Link copied to clipboard
abstract var asynchronous: Boolean?

Determines if the primitive will be created asynchronously or block until ready. If false initializeTerrainHeights() must be called first. Default value - true

Link copied to clipboard

Determines whether terrain, 3D Tiles or both will be classified. Default value - ClassificationType.BOTH

Link copied to clipboard
abstract var compressVertices: Boolean?

When true, the geometry vertices are compressed, which will save memory. Default value - true

Link copied to clipboard

For debugging only. Determines if this primitive's commands' bounding spheres are shown. Default value - false

Link copied to clipboard

For debugging only. Determines if the shadow volume for each geometry in the primitive is drawn. Must be true on creation for the volumes to be created before the geometry is released or options.releaseGeometryInstance must be false. Default value - false

Link copied to clipboard

The geometry instances to render.

Link copied to clipboard
abstract var interleave: Boolean?

When true, geometry vertex attributes are interleaved, which can slightly improve rendering performance but increases load time. Default value - false

Link copied to clipboard

When true, the primitive does not keep a reference to the input geometryInstances to save memory. Default value - true

Link copied to clipboard
abstract var show: Boolean?

Determines if this primitive will be shown. Default value - true

Link copied to clipboard

When true, geometry vertices are optimized for the pre and post-vertex-shader caches. Default value - false