Skip to main content

LCC for Web Manual · v0.6.3 · Page 46 of 68

LCCObject::setSemanticColor

Sets the colors for AI semantic coloring.

Version Requirement

SDK v0.5.5+

Engine Support

Three.js / CesiumJS

API

LCCObject::setSemanticColor(value: number[][]): void

Parameters

ParameterTypeRequiredDefaultDescription
valuenumber[][]Yes-Color array, each element in [R, G, B] format. Maximum 100 colors.

Return Value

void

Usage Example

const newColor = [
    [255, 82, 82],
    [238, 177, 20],
    // ... more colors
];
lccObject.setSemanticColor(newColor);

Notes

  • Maximum of 100 colors can be set.
  • This method depends on AI semantic labels in the LCC data. If the LCC data has not been AI-labeled, it will have no effect.
  • LCCObject::setSemantic()

XGRIDS documentation, reproduced as published and captured on October 27, 2026. Read this page on docs.xgrids.com

Stuck on a Step?

QRC supports every scanner and software seat it sells. Send us the page you are on and we will walk you through it.

Contact Us
Request a Quote