English中文

CullingVolume

new Cesium.CullingVolume(planes)

由平面定义的剔除体积。 The culling volume defined by planes.
名称 Name 类型 Type 说明 Description
planes Array.<Cartesian4> 可选 optional 剪裁平面数组。 An array of clipping planes.

成员 Members

每个平面都由一个 Cartesian4 对象表示,其中 x、y 和 z 分量定义垂直于平面的单位向量,w 分量是平面距原点的距离。 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.
默认值: Default Value: []

方法 Methods

static Cesium.CullingVolume.fromBoundingSphere(boundingSphere, result)CullingVolume

从边界球体构造剔除体积。创建六个平面,创建一个包含球体的盒子。这些平面与世界坐标中的 x、y 和 z 轴对齐。 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.
名称 Name 类型 Type 说明 Description
boundingSphere BoundingSphere 用于创建剔除体积的边界球体。 The bounding sphere used to create the culling volume.
result CullingVolume 可选 optional 用于存储结果的对象。 The object onto which to store the result.
返回: Returns:
从边界球体创建的剔除体积。 The culling volume created from the bounding sphere.

computeVisibility(boundingVolume)Intersect

确定包围体积是否与剔除体积相交。 Determines whether a bounding volume intersects the culling volume.
名称 Name 类型 Type 说明 Description
boundingVolume object 要测试与剔除体积相交的包围体积。 The bounding volume whose intersection with the culling volume is to be tested.
返回: Returns:
相交.OUTSIDE、相交.INTERSECTING 或相交.INSIDE。 Intersect.OUTSIDE, Intersect.INTERSECTING, or Intersect.INSIDE.
需要帮助吗?获得答案的最快方法是从社区和团队那里获得答案 Need help? The fastest way to get answers is from the community and team on the Cesium Forum.