Skip to content
TREN
Atlıhan Harita

LCC for Web User Manual · API Reference

LCCObject::getLodInfos

Chapter 06.7 / 07Manual version v0.6.4English

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.
  • LCCObject::setStartLod()
  • LCCObject::setEndLod()
  • LCCObject::setMaxSplats()

This chapter is from the official XGRIDS user manual. Official source (opens in a new tab) · Updated:

XGRIDS Türkiye

We're With You During Setup and in the Field

Atlıhan Harita provides training and technical support for device setup, firmware updates, software use, and field applications. Send us your question and our specialist will get back to you.

+90 216 546 0804