toValue

fun toValue(distanceDisplayCondition: DistanceDisplayCondition, result: Float32Array<*>? = definedExternally): Float32Array<*>(source)

Converts a distance display condition to a typed array that can be used to assign a distance display condition attribute.

const attributes = primitive.getGeometryInstanceAttributes('an id');
attributes.distanceDisplayCondition = DistanceDisplayConditionGeometryInstanceAttribute.toValue(distanceDisplayCondition, attributes.distanceDisplayCondition);

Return

The modified result parameter or a new instance if result was undefined.

Parameters

distanceDisplayCondition

The distance display condition value.

result

The array to store the result in, if undefined a new instance will be created.

See also