Skip to main content

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

LCCObject::setClipPlane

Performs plane clipping on a single LCC model.

Clipping uses the screen center as the origin. Can be used for comparison effects (e.g., swipe comparison) by comparing the two sides of the clip plane based on its direction and position.

Version Requirement

SDK v0.3.0+

Engine Support

Three.js / CesiumJS

API

LCCObject::setClipPlane(normal: number[], constant: number): void

Parameters

ParameterTypeRequiredDefaultDescription
normalnumber[]Yes-Clip plane direction, an array of length 3, e.g., [1, 0, 0].
constantnumberYes-Distance from the clip plane to the screen center, range [-1, 1].

Return Value

void

Usage Example

// Clip along x-axis, centered at 0, clip left side
lccObject.setClipPlane([1, 0, 0], 0);

// Clip along x-axis, clip right side
lccObject.setClipPlane([-1, 0, 0], 0);

// Clip along y-axis, centered at 0, clip top side
lccObject.setClipPlane([0, 1, 0], 0);

// Clip along y-axis, clip bottom side
lccObject.setClipPlane([0, -1, 0], 0);

Notes

  • This method can be called synchronously immediately after LCCRender.load().
  • LCCObject::setClipBox()

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