# GaussianSplat3DTileContent

#### new Cesium.GaussianSplat3DTileContent()
engine/Source/Scene/GaussianSplat3DTileContent.js 21

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
engine/Source/Scene/GaussianSplat3DTileContent.js 235

Gets the amount of memory used by the batch table textures and any binary metadata properties not accounted for in geometryByteLength or texturesByteLength

#### readonly featuresLength : number
engine/Source/Scene/GaussianSplat3DTileContent.js 160

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

#### readonly geometryByteLength : number
engine/Source/Scene/GaussianSplat3DTileContent.js 200

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

#### readonly innerContents : Array
engine/Source/Scene/GaussianSplat3DTileContent.js 250

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:

- Composite specification

#### readonly pointsLength : number
engine/Source/Scene/GaussianSplat3DTileContent.js 175

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.

#### readonly ready : boolean
engine/Source/Scene/GaussianSplat3DTileContent.js 264

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

#### readonly texturesByteLength : number
engine/Source/Scene/GaussianSplat3DTileContent.js 214

The number of bytes used by the textures of this content.

#### readonly tile : Cesium3DTile
engine/Source/Scene/GaussianSplat3DTileContent.js 302

The tile that this content belongs to.

#### readonly tileset : Cesium3DTileset
engine/Source/Scene/GaussianSplat3DTileContent.js 290

The tileset that this content belongs to.

#### readonly transformed : boolean
engine/Source/Scene/GaussianSplat3DTileContent.js 277

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

#### readonly trianglesLength : number
engine/Source/Scene/GaussianSplat3DTileContent.js 188

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.

#### readonly url : Resource
engine/Source/Scene/GaussianSplat3DTileContent.js 314

The resource that this content was loaded from.

### Methods

#### static Cesium.GaussianSplat3DTileContent.tilesetRequiresGaussianSplattingExt(tileset) → boolean
engine/Source/Scene/GaussianSplat3DTileContent.js 124

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.

#### getFeature(batchId) → Cesium3DTileFeature
engine/Source/Scene/GaussianSplat3DTileContent.js 731

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 | The batchId for the feature.

##### Returns:

The corresponding `Cesium3DTileFeature` object.

##### Throws:

- DeveloperError : batchId must be between zero and `Cesium3DTileContent#featuresLength` - 1.

##### See:

- https://github.com/CesiumGS/3d-tiles/tree/main/specification/TileFormats/BatchTable.

#### hasProperty(batchId, name) → boolean
engine/Source/Scene/GaussianSplat3DTileContent.js 712

Returns whether the feature has this property.

Name | Type | Description
--- | --- | ---
`batchId` | number | 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.