Skip to content

KBE3D / KBCore / Cesium / GaussianSplat3DTileContent

类: GaussianSplat3DTileContent

Represents the contents of a glTF or glb using the KHR_gaussian_splatting

and KHR_gaussian_splatting_compression_spz_2 extensions. <p> Implements the Cesium3DTileContent interface. </p>

属性

featuresLength

readonly featuresLength: number

Gets the number of features in the tile. Currently this is always zero.


pointsLength

readonly pointsLength: number

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.


trianglesLength

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


geometryByteLength

readonly geometryByteLength: number

The number of bytes used by the geometry attributes of this content. <p>


texturesByteLength

readonly texturesByteLength: number

The number of bytes used by the textures of this content. <p>


batchTableByteLength

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


innerContents

readonly innerContents: any[]

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.


ready

readonly ready: boolean

Returns true when the tile's content is ready to render; otherwise false


transformed

readonly transformed: boolean

Returns true when the tile's content is transformed to world coordinates; otherwise false <p>


tileset

readonly tileset: Cesium3DTileset

The tileset that this content belongs to. <p>


tile

readonly tile: Cesium3DTile

The tile that this content belongs to. <p>


url

readonly url: Resource

The resource that this content was loaded from. <p>

方法

tilesetRequiresGaussianSplattingExt()

static tilesetRequiresGaussianSplattingExt(tileset: Cesium3DTileset): boolean

Performs checks to ensure that the provided tileset has the Gaussian Splatting extensions.

参数

tileset

Cesium3DTileset

The tileset to check for the extensions.

返回

boolean

Returns true if the necessary extensions are included in the tileset.


hasProperty()

hasProperty(batchId: number, name: string): boolean

Returns whether the feature has this property.

参数

batchId

number

The batchId for the feature.

name

string

The case-sensitive name of the property.

返回

boolean

true if the feature has this property; otherwise, false.


getFeature()

getFeature(batchId: number): Cesium3DTileFeature

Returns the Cesium3DTileFeature object for the feature with the given <code>batchId</code>. This object is used to get and modify the feature's properties. <p> Features in a tile are ordered by <code>batchId</code>, an index used to retrieve their metadata from the batch table. </p>

参数

batchId

number

The batchId for the feature.

返回

Cesium3DTileFeature

The corresponding Cesium3DTileFeature object.

构造函数

构造函数

new GaussianSplat3DTileContent(): GaussianSplat3DTileContent

返回

GaussianSplat3DTileContent

KBE3D @3.0.0 Copyright © 2024-present KBE3D