Skip to main content

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

LCCRender::setCamera

Updates the camera used for rendering.

Supports both THREE.PerspectiveCamera and THREE.OrthographicCamera camera types.

Version Requirement

SDK v0.5.3+

Engine Support

Three.js

API

LCCRender::setCamera(camera: THREE.PerspectiveCamera | THREE.OrthographicCamera): void

Parameters

ParameterTypeRequiredDefaultDescription
cameraTHREE.PerspectiveCamera / THREE.OrthographicCameraYes-The new camera object.

Return Value

void

Usage Example

const newCamera = new THREE.OrthographicCamera(-10, 10, 10, -10, 1, 1000);
LCCRender.setCamera(newCamera);

Notes

  • Can be used to switch between perspective and orthographic cameras.
  • LCCRender::load() — Loads LCC data.
  • LCCRender::update() — Updates LCCRender.

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