LCCObject::setPointsColor
Sets the point cloud display style.
Version Requirement
SDK v0.5.1+
Engine Support
Three.js / CesiumJS
API
LCCObject::setPointsColor(value: string): void
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
value | string | Yes | - | Point cloud display style: 'default' (original color) or 'rainbow' (elevation color). |
Return Value
void
Usage Example
// Set to default color
lccObject.setPointsColor('default');
// Set to rainbow (elevation) color
lccObject.setPointsColor('rainbow');
Notes
- This method can be called synchronously immediately after
LCCRender.load(). - Must be used with
togglePointsDisplayMode()to switch to point cloud display mode before the effect is visible.
Related APIs
LCCObject::togglePointsDisplayMode()