VoxelContent

internal constructor new Cesium.VoxelContent()

要构造 VoxelContent,请调用 VoxelContent.fromMetadataArrayVoxelContent.fromGltf。不要直接调用构造函数。
表示用于 Cesium3DTilesVoxelProvider 的体素内容的对象。
Throws:
Experimental

此功能尚未最终确定,可能会在不遵循 Cesium 标准弃用政策的情况下进行更改。

Members

readonly metadata : Array.<Int8Array>|Array.<Uint8Array>|Array.<Int16Array>|Array.<Uint16Array>|Array.<Int32Array>|Array.<Uint32Array>|Array.<Float32Array>|Array.<Float64Array>

此体素内容的元数据。 元数据是一个类型化数组的数组,每个字段一个。 一个字段的数据是按 X、然后 Y、然后 Z 顺序排列的扁平化 3D 数组。

Methods

static Cesium.VoxelContent.fromMetadataArray(metadata)VoxelContent

从元数据数组构造 VoxelContent。
Name Type Description
metadata Array.<Int8Array> | Array.<Uint8Array> | Array.<Int16Array> | Array.<Uint16Array> | Array.<Int32Array> | Array.<Uint32Array> | Array.<Float32Array> | Array.<Float64Array> 用于此体素内容的元数据。
Returns:
包含指定元数据的 VoxelContent。
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.