由平面定义的剔除体。
| 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, or Intersect.INSIDE.
