LCCObject::hasShcoef
Queries whether the current LCC model contains spherical harmonics data.
Version Requirement
SDK v0.4.0+
Engine Support
Three.js / CesiumJS
API
LCCObject::hasShcoef(): boolean
Parameters
None
Return Value
boolean — true indicates spherical harmonics data is available; false indicates no spherical harmonics data.
Usage Example
const ret = lccObject.hasShcoef();
if (ret) {
console.log('Spherical harmonics data available');
} else {
console.log('Spherical harmonics data not available');
}
Notes
- This method must be called after the success callback of
LCCRender.load()has been triggered.
Related APIs
LCCObject::useShcoef()