Occluder

external class Occluder(occluderBoundingSphere: BoundingSphere, var cameraPosition: Cartesian3)(source)

Creates an Occluder derived from an object's position and radius, as well as the camera position. The occluder can be used to determine whether or not other objects are visible or hidden behind the visible horizon defined by the occluder and camera position.

// Construct an occluder one unit away from the origin with a radius of one.
const cameraPosition = Cartesian3.ZERO;
const occluderBoundingSphere = new BoundingSphere(new Cartesian3(0, 0, -1), 1);
const occluder = new Occluder(occluderBoundingSphere, cameraPosition);

Parameters

occluderBoundingSphere

The bounding sphere surrounding the occluder.

See also

Constructors

Link copied to clipboard
constructor(occluderBoundingSphere: BoundingSphere, cameraPosition: Cartesian3)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The coordinate of the viewer/camera.

Link copied to clipboard

The position of the occluder.

Link copied to clipboard

The radius of the occluder.

Functions

Link copied to clipboard

Determine to what extent an occludee is visible (not visible, partially visible, or fully visible).

Link copied to clipboard

Determines whether or not a sphere, the occludee, is hidden from view by the occluder.

Link copied to clipboard

Determines whether or not a point, the occludee, is hidden from view by the occluder.