LCCObject::getLodInfos
Gets the LOD information of the LCC model.
Returns an array where the length represents the total number of LOD levels, and each element represents the total number of splats in the corresponding LOD level.
Version Requirement
SDK v0.5.0+
Engine Support
Three.js / CesiumJS
API
LCCObject::getLodInfos(): number[]
Parameters
None
Return Value
number[] — LOD information array. The array index corresponds to the LOD level, and the value is the total splat count for that level. LOD0 has the highest rendering quality and largest data volume.
Usage Example
const lods = lccObject.getLodInfos();
// Example return value: [12385554, 5872608, 2838509, 1377826, 664160]
// 5 LOD levels in total
// LOD0 has 12,385,554 splats
// LOD4 has 664,160 splats
Notes
- This method must be called after the success callback of
LCCRender.load()has been triggered.
Related APIs
LCCObject::setStartLod()LCCObject::setEndLod()LCCObject::setMaxSplats()