ShowGeometryInstanceAttribute

external class ShowGeometryInstanceAttribute(show: Boolean? = definedExternally)(source)

Value and type information for per-instance geometry attribute that determines if the geometry instance will be shown.

const instance = new GeometryInstance({
geometry : new BoxGeometry({
vertexFormat : VertexFormat.POSITION_AND_NORMAL,
minimum : new Cartesian3(-250000.0, -250000.0, -250000.0),
maximum : new Cartesian3(250000.0, 250000.0, 250000.0)
}),
modelMatrix : Matrix4.multiplyByTranslation(Transforms.eastNorthUpToFixedFrame(
Cartesian3.fromDegrees(-75.59777, 40.03883)), new Cartesian3(0.0, 0.0, 1000000.0), new Matrix4()),
id : 'box',
attributes : {
show : new ShowGeometryInstanceAttribute(false)
}
});

Parameters

show

Determines if the geometry instance will be shown. Default value - true

See also

Constructors

Link copied to clipboard
constructor(show: Boolean? = definedExternally)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The datatype of each component in the attribute, e.g., individual elements in ColorGeometryInstanceAttribute.value.

Link copied to clipboard

The number of components in the attributes, i.e., ColorGeometryInstanceAttribute.value.

Link copied to clipboard

When true and componentDatatype is an integer format, indicate that the components should be mapped to the range 0, 1 (unsigned) or -1, 1 (signed) when they are accessed as floating-point for rendering.

Link copied to clipboard

The values for the attributes stored in a typed array.