VoxelContent

internal constructor new Cesium.VoxelContent()

To construct a VoxelContent, call VoxelContent.fromMetadataArray or VoxelContent.fromGltf. Do not call the constructor directly.
An object representing voxel content for a Cesium3DTilesVoxelProvider.
Throws:
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.
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.