toValue
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);
Content copied to clipboard
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.