由平面定义的剔除体积。
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:
相交.OUTSIDE, 相交.相交,或相交.内部.