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)
}
});
Content copied to clipboard
Parameters
near
The near distance. Default value - 0.0
far
The far distance. Default value - Number.MAX_VALUE
See also
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
The values for the attributes stored in a typed array.