GaussianSplat3DTileContent

Represents the contents of a glTF or glb using the KHR_gaussian_splatting and KHR_gaussian_splatting_compression_spz_2 extensions.

Implements the Cesium3DTileContent interface.

new Cesium.GaussianSplat3DTileContent()

Members

readonly batchTableByteLength : number

获取批处理表(batch table)纹理以及任何未被 geometryByteLength 或 texturesByteLength 计入的二进制元数据属性所占用的内存量。

获取瓦片中的特征数量。目前此值始终为零。

readonly geometryByteLength : number

此内容几何体属性所占用的字节数。

获取包含其他内容的(如复合瓦片)内容的 Cesium3DTileContent 对象数组。内部内容本身也可能包含内部内容,例如一个包含复合瓦片的复合瓦片。
See:
等于瓦片中高斯泼溅(Gaussian splat)的数量。每个泼溅由一个中点位置和一组属性表示, 因此我们可以将其视为瓦片中的点数。
当瓦片内容已准备好渲染时返回 true,否则返回 false。

readonly texturesByteLength : number

此内容的纹理所占用的字节数。

此内容所属的瓦片。

此内容所属的瓦片集。

当瓦片内容已变换到世界坐标系时返回 true,否则返回 false。

readonly trianglesLength : number

获取瓦片中的三角形数量。目前此值始终为零,因为高斯泼溅在瓦片内容中并不以三角形的形式表示。

加载此内容所来自的资源。

Methods

static Cesium.GaussianSplat3DTileContent.tilesetRequiresGaussianSplattingExt(tileset)boolean

执行检查,以确保所提供的瓦片集具有高斯泼溅(Gaussian Splatting)扩展。
Name Type Description
tileset Cesium3DTileset 要检查扩展的瓦片集。
Returns:
如果瓦片集中包含必要的扩展则返回 true
返回具有给定 batchId 的要素所对应的 Cesium3DTileFeature 对象。 该对象用于获取和修改要素的属性。

瓦片中的要素按 batchId 排序,该索引用于从批量表(batch table)中检索其元数据。

Name Type Description
batchId number 特征的 batchId。
Returns:
对应的 Cesium3DTileFeature 对象。
Throws:
See:

hasProperty(batchId, name)boolean

返回该特征是否具有此属性。
Name Type Description
batchId number 特征的 batchId。
name string 属性的区分大小写的名称。
Returns:
如果特征具有此属性则为 true,否则为 false
需要帮助?获取答案的最快方式是在 Cesium 论坛 上向社区和团队提问。