English中文

VoxelContent

internal constructor new Cesium.VoxelContent()

要构造 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:
  • DeveloperError :必须定义加载程序和元数据之一。 : One of loader and metadata must be defined.
  • DeveloperError :元数据必须是 TypedArray 的数组。 : metadata must be an array of TypedArrays.
实验性 Experimental

此功能不是最终版本,可能会在没有 Cesium 标准弃用政策的情况下进行更改。 This feature is not final and is subject to change without Cesium's standard deprecation policy.

方法 Methods

static Cesium.VoxelContent.fromMetadataArray(metadata)VoxelContent

从元数据数组构造 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:
包含指定元数据的 VoxelContent。 A VoxelContent containing the specified metadata.
需要帮助吗?获得答案的最快方法是从社区和团队那里获得答案 Need help? The fastest way to get answers is from the community and team on the Cesium Forum.