Skip to main content

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

LCCObject::setScale

Sets the scale of the LCC model.

Version Requirement

SDK v0.3.1+

Engine Support

CesiumJS

API

LCCObject::setScale(scale: { x: number, y: number, z: number } | number): void

Parameters

ParameterTypeRequiredDefaultDescription
scale{ x: number, y: number, z: number } / numberYes-Scale value. Before SDK v0.6.3, pass an object; from SDK v0.6.3+, only uniform scaling is supported with a single number.

Return Value

void

Usage Example

SDK v0.3.1 – v0.6.2

const scale = { x: 10, y: 10, z: 10 };
lccObject.setScale(scale);

SDK v0.6.3+ (Uniform Scaling)

Starting from v0.6.3, only uniform scaling is supported. The input parameter is a single scale factor, based on the ENU coordinate system.

lccObject.setScale(10);

Notes

  • This method must be called after the success callback of LCCRender.load() has been triggered.
  • SDK v0.6.3+ only supports uniform scaling (single number); independent axis scaling is no longer supported.
  • LCCObject::setRotation()
  • LCCObject::setOriginPosition()

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