由平面定义的剔除体积。
| 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。
