DistanceDisplayConditionGeometryInstanceAttribute

external class DistanceDisplayConditionGeometryInstanceAttribute(near: Double? = definedExternally, far: Double? = definedExternally)(source)

Value and type information for per-instance geometry attribute that determines if the geometry instance has a distance display condition.

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 : {
distanceDisplayCondition : new DistanceDisplayConditionGeometryInstanceAttribute(100.0, 10000.0)
}
});

Parameters

near

The near distance. Default value - 0.0

far

The far distance. Default value - Number.MAX_VALUE

See also

Constructors

constructor(near: Double? = definedExternally, far: Double? = 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 DistanceDisplayConditionGeometryInstanceAttribute.value.

Link copied to clipboard

The number of components in the attributes, i.e., DistanceDisplayConditionGeometryInstanceAttribute.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.