Skip to content
TREN
Atlıhan Harita

LCC for Web User Manual · API Reference

LCCObject::getBounds

Chapter 06.4 / 07Manual version v0.6.4English

Gets the AABB bounding box of the LCC model scene.

Version Requirement

SDK v0.4.0+

Engine Support

Three.js / CesiumJS

API

LCCObject::getBounds(): BoundingBox

Parameters

None

Return Value

Returns a bounding box object with the following properties:

Three.js

PropertyTypeDescription
min{ x: number, y: number, z: number }Minimum point of the bounding box.
max{ x: number, y: number, z: number }Maximum point of the bounding box.

CesiumJS

PropertyTypeDescription
min{ x: number, y: number, z: number }Minimum point of the bounding box.
max{ x: number, y: number, z: number }Maximum point of the bounding box.
origin{ x: number, y: number, z: number }Scene origin point coordinates (WGS84 Cartesian coordinate system).

Usage Example

Three.js

const box = lccObject.getBounds();
console.log('min: ', box.min.x, box.min.y, box.min.z);
console.log('max: ', box.max.x, box.max.y, box.max.z);

CesiumJS

const box = lccObject.getBounds();
console.log('min: ', box.min.x, box.min.y, box.min.z);
console.log('max: ', box.max.x, box.max.y, box.max.z);
console.log('origin: ', box.origin.x, box.origin.y, box.origin.z);

Notes

  • This method must be called after the success callback of LCCRender.load() has been triggered.
  • In Three.js, the bounding box is based on the LCC model's local coordinate system.
  • In CesiumJS, for non-RTK data the bounding box is based on the LCC model's local coordinate system; for RTK data the bounding box is based on the projection coordinate system. origin uses the WGS84 Cartesian coordinate system.
  • LCCObject::getProjectionCoordinateSystemInfos()

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