Class: CullingVolume

CullingVolume

new CullingVolume(planesopt)

The culling volume defined by planes.
Parameters:
Name Type Attributes Description
planes Array.<Cartesian4> <optional>
An array of clipping planes.
Source:

Members

planes :Array.<Cartesian4>

Each plane is represented by a Cartesian4 object, where the x, y, and z components define the unit vector normal to the plane, and the w component is the distance of the plane from the origin.
Type:
Default Value:
  • []
Source:

Methods

(static) fromBoundingSphere(boundingSphere, resultopt) → {CullingVolume}

Constructs a culling volume from a bounding sphere. Creates six planes that create a box containing the sphere. The planes are aligned to the x, y, and z axes in world coordinates.
Parameters:
Name Type Attributes Description
boundingSphere BoundingSphere The bounding sphere used to create the culling volume.
result CullingVolume <optional>
The object onto which to store the result.
Source:
Returns:
The culling volume created from the bounding sphere.
Type
CullingVolume

computeVisibility(boundingVolume) → {Intersect}

Determines whether a bounding volume intersects the culling volume.
Parameters:
Name Type Description
boundingVolume Object The bounding volume whose intersection with the culling volume is to be tested.
Source:
Returns:
Intersect.OUTSIDE, Intersect.INTERSECTING, or Intersect.INSIDE.
Type
Intersect