The culling volume defined by planes.
参数名称 | 类型 | 描述信息 |
---|---|---|
planes |
Array.<Cartesian4> | 可选 An array of clipping planes. |
成员(属性)
planes : Array.<Cartesian4>
Each plane is represented by a Cartesian4 object, where the x, y, and z components
define the unit vector normal to the plane, and the w component is the distance of the
plane from the origin.
-
默认值:
[]
方法
static Cesium.CullingVolume.fromBoundingSphere(boundingSphere, result) → CullingVolume
Constructs a culling volume from a bounding sphere. Creates six planes that create a box containing the sphere.
The planes are aligned to the x, y, and z axes in world coordinates.
参数名称 | 类型 | 描述信息 |
---|---|---|
boundingSphere |
BoundingSphere | The bounding sphere used to create the culling volume. |
result |
CullingVolume | 可选 The object onto which to store the result. |
返回值:
The culling volume created from the bounding sphere.
computeVisibility(boundingVolume) → Intersect
Determines whether a bounding volume intersects the culling volume.
参数名称 | 类型 | 描述信息 |
---|---|---|
boundingVolume |
object | The bounding volume whose intersection with the culling volume is to be tested. |
返回值:
Intersect.OUTSIDE, Intersect.INTERSECTING, or Intersect.INSIDE.