English中文

GaussianSplat3DTileContent

new Cesium.GaussianSplat3DTileContent()

使用以下表示 glTF 或 glb 的内容 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.

成员 Members

readonly batchTableByteLength : number

获取批处理表纹理以及几何字节长度或纹理字节长度中未考虑的任何二进制元数据属性使用的内存量 Gets the amount of memory used by the batch table textures and any binary metadata properties not accounted for in geometryByteLength or texturesByteLength

获取图块中的要素数量。目前该值始终为零。 Gets the number of features in the tile. Currently this is always zero.

readonly geometryByteLength : number

该内容的几何属性使用的字节数。 The number of bytes used by the geometry attributes of this content.

获取数组 Gets the array of Cesium3DTileContent 包含其他内容的内容的对象,例如复合图块。内部内容又可以具有内部内容,例如包含复合图块的复合图块。 objects for contents that contain other contents, such as composite tiles. The inner contents may in turn have inner contents, such as a composite tile that contains a composite tile.
另见: See:
等于图块中高斯斑点的数量。每个图块都由一个中点和一组属性表示,因此我们可以将其视为图块中的点数。 Equal to the number of Gaussian splats in the tile. Each splat is represented by a median point and a set of attributes, so we can treat this as the number of points in the tile.
当图块的内容准备好渲染时返回 true;否则为假 Returns true when the tile's content is ready to render; otherwise false

readonly texturesByteLength : number

该内容的纹理使用的字节数。 The number of bytes used by the textures of this content.

该内容所属的图块。 The tile that this content belongs to.

此内容所属的图块集。 The tileset that this content belongs to.

当图块的内容转换为世界坐标时返回 true;否则为假 Returns true when the tile's content is transformed to world coordinates; otherwise false

readonly trianglesLength : number

获取图块中三角形的数量。目前,该值始终为零,因为高斯图块在图块内容中不表示为三角形。 Gets the number of triangles in the tile. Currently this is always zero because Gaussian splats are not represented as triangles in the tile content.

加载此内容的资源。 The resource that this content was loaded from.

方法 Methods

static Cesium.GaussianSplat3DTileContent.tilesetRequiresGaussianSplattingExt(tileset)boolean

执行检查以确保提供的图块集具有高斯泼溅扩展。 Performs checks to ensure that the provided tileset has the Gaussian Splatting extensions.
名称 Name 类型 Type 说明 Description
tileset Cesium3DTileset 用于检查扩展的图块集。 The tileset to check for the extensions.
返回: Returns:
Returns true 如果必要的扩展包含在图块集中。 if the necessary extensions are included in the tileset.
返回 Returns the Cesium3DTileFeature 给定特征的对象 object for the feature with the given batchId。该对象用于获取和修改要素的属性。 . This object is used to get and modify the feature's properties.

图块中的特征按以下顺序排序 Features in a tile are ordered by batchId,用于从批处理表中检索其元数据的索引。 , an index used to retrieve their metadata from the batch table.

名称 Name 类型 Type 说明 Description
batchId number 该功能的batchId。 The batchId for the feature.
返回: Returns:
相应的 The corresponding Cesium3DTileFeature object.
抛出: Throws:
另见: See:

hasProperty(batchId, name)boolean

返回该功能是否具有此属性。 Returns whether the feature has this property.
名称 Name 类型 Type 说明 Description
batchId number 该功能的batchId。 The batchId for the feature.
name string 属性的名称区分大小写。 The case-sensitive name of the property.
返回: Returns:
true 如果该特征具有此属性;否则, if the feature has this property; otherwise, false.
需要帮助吗?获得答案的最快方法是从社区和团队那里获得答案 Need help? The fastest way to get answers is from the community and team on the Cesium Forum.