CullingVolume

new Cesium.CullingVolume(planes)

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

Members

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

Methods

static Cesium.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。
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.