ShowGeometryInstanceAttribute
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)
}
});
Content copied to clipboard
Parameters
show
Determines if the geometry instance will be shown. Default value - true
See also
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
The values for the attributes stored in a typed array.