# VoxelContent

#### internal constructor new Cesium.VoxelContent()
engine/Source/Scene/VoxelContent.js 28

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:

- 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.

### Methods

#### static Cesium.VoxelContent.fromMetadataArray(metadata) → VoxelContent
engine/Source/Scene/VoxelContent.js 85

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.