Values and type information for geometry attributes. A Geometry
generally contains one or more attributes. All attributes together form
the geometry's vertices.
alias GeometryAttribute
- The options object takes the following properties
- {ComponentDatatype} [options.componentDatatype] The datatype of each component in the attribute, e.g., individual elements in values.
- {Number} [options.componentsPerAttribute] A number between 1 and 4 that defines the number of components in an attributes.
- {Boolean} [options.normalize=false] When true and componentDatatype is an integer format, indicate that the components should be mapped to the range [0, 1] (unsigned) or [-1, 1] (signed) when they are accessed as floating-point for rendering.
- {TypedArray} [options.values] The values for the attributes stored in a typed array.
exception {DeveloperError} options.componentsPerAttribute must be between 1 and 4.
Values and type information for geometry attributes. A Geometry generally contains one or more attributes. All attributes together form the geometry's vertices.
alias GeometryAttribute
- The options object takes the following properties - {ComponentDatatype} [options.componentDatatype] The datatype of each component in the attribute, e.g., individual elements in values. - {Number} [options.componentsPerAttribute] A number between 1 and 4 that defines the number of components in an attributes. - {Boolean} [options.normalize=false] When
true
andcomponentDatatype
is an integer format, indicate that the components should be mapped to the range [0, 1] (unsigned) or [-1, 1] (signed) when they are accessed as floating-point for rendering. - {TypedArray} [options.values] The values for the attributes stored in a typed array.exception {DeveloperError} options.componentsPerAttribute must be between 1 and 4.
var geometry = new Cesium.Geometry({ attributes : { position : new Cesium.GeometryAttribute({ componentDatatype : Cesium.ComponentDatatype.FLOAT, componentsPerAttribute : 3, values : new Float32Array([ 0.0, 0.0, 0.0, 7500000.0, 0.0, 0.0, 0.0, 7500000.0, 0.0 ]) }) }, primitiveType : Cesium.PrimitiveType.LINE_LOOP });
Geometry