To construct a VoxelContent, call
An object representing voxel content for a VoxelContent.fromMetadataArray or VoxelContent.fromGltf. Do not call the constructor directly.
Cesium3DTilesVoxelProvider.
Throws:
-
DeveloperError : One of loader and metadata must be defined.
-
DeveloperError : metadata must be an array of TypedArrays.
Experimental
This feature is not final and is subject to change without Cesium's standard deprecation policy.
Members
readonly metadata : Array.<Int8Array>|Array.<Uint8Array>|Array.<Int16Array>|Array.<Uint16Array>|Array.<Int32Array>|Array.<Uint32Array>|Array.<Float32Array>|Array.<Float64Array>
The metadata for this voxel content.
The metadata is an array of typed arrays, one for each field.
The data for one field is a flattened 3D array ordered by X, then Y, then Z.
Methods
static Cesium.VoxelContent.fromMetadataArray(metadata) → VoxelContent
Constructs a VoxelContent from an array of metadata.
| Name | Type | Description |
|---|---|---|
metadata |
Array.<Int8Array> | Array.<Uint8Array> | Array.<Int16Array> | Array.<Uint16Array> | Array.<Int32Array> | Array.<Uint32Array> | Array.<Float32Array> | Array.<Float64Array> | The metadata to use for this voxel content. |
Returns:
A VoxelContent containing the specified metadata.
