Occluder

open 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
external object Companion

Properties

Link copied to clipboard

The coordinate of the viewer/camera.

Link copied to clipboard
external var position: Cartesian3

The position of the occluder.

Link copied to clipboard
external var radius: Double

The radius of the occluder.

Functions

Link copied to clipboard
external fun computeVisibility(occludeeBS: BoundingSphere): Visibility

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
external fun isPointVisible(occludee: Cartesian3): Boolean

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