toValue

fun toValue(show: Boolean, result: Uint8Array? = definedExternally): Uint8Array(source)

Converts a boolean show to a typed array that can be used to assign a show attribute.

const attributes = primitive.getGeometryInstanceAttributes('an id');
attributes.show = ShowGeometryInstanceAttribute.toValue(true, attributes.show);

Return

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

Parameters

show

The show value.

result

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

See also