由平面定义的剔除体积。
Name | Type | Description |
---|---|---|
planes |
Array.<Cartesian4> | optional 剪切平面数组。 |
Members
planes : Array.<Cartesian4>
每个平面都由一个 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。