Skip to main content

enumeration.ClippingMode

API > ClippingMode

Enumeration: ClippingMode

How to combine the half-spaces of multiple clipping planes into a clipping volume.

Enumeration Members

intersection

intersection: 0

Use the intersection of the clipping plane half-spaces.

Remarks

This is useful for creating a clipping space where everything outside e.g. a slab or a box is clipped/hidden.

inside_volume = inside(plane0) AND inside(plane1) AND ...

Source

@novorender/core3d/state/index.ts:464


union

union: 1

Use the union of the clipping plane half-spaces.

Remarks

This is useful for creating spaces where everything inside e.g. a slab or a box is clipped/hidden.

inside_volume = inside(plane0) OR inside(plane1) OR ...

Source

@novorender/core3d/state/index.ts:472