CullingVolume

new Cesium.CullingVolume(planes)

平面(planes)定义的剔除体。
Name Type Description
planes Array.<Cartesian4> optional 一组裁剪平面。

Members

每个平面都由一个Cartesian4对象表示,其中x、y和z分量定义了垂直于该平面的单位向量,w分量是该平面到原点的距离。
Default Value: []

Methods

staticCesium.CullingVolume.fromBoundingSphere(boundingSphere, result)CullingVolume

从一个包围球构造一个剔除体。创建六个平面,这些平面创建一个包含球体的盒子。 这些平面在世界坐标中与x、y和z轴对齐。
Name Type Description
boundingSphere BoundingSphere 用于创建剔除体的边界球。
result CullingVolume optional 存储结果的对象。
Returns:
从包围球创建的剔除体。

computeVisibility(boundingVolume)Intersect

确定包围体是否与剔除体相交。
Name Type Description
boundingVolume Object 要测试与剔除体相交的包围体。
Returns:
Intersect.OUTSIDE,Intersect.INTERSECTING,或 Intersect.INSIDE.