Class: FrustumVolume

x3dom.fields. FrustumVolume

Represents a frustum (as internal helper).

Inheritance

  • FrustumVolume

Constructor

FrustumVolume(clipMat)

FrustumVolume constructor.

Parameters:
Name Type Description
clipMat


Methods

intersect(vol, planeMask)

Check the volume against the frustum. Return values > 0 indicate a plane mask that was used to identify the object as "inside". Return value -1 means the object has been culled (i.e., is outside with respect to at least one plane). Return value 0 is a rare case, indicating that the object intersects with all planes of the frustum.

Parameters:
Name Type Description
vol
planeMask