Skip to content

KBE3D / KBCore / Cesium / CullingVolume

类: CullingVolume

The culling volume defined by planes.

参数

An array of clipping planes.

属性

planes

planes: 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.

方法

fromBoundingSphere()

static fromBoundingSphere(boundingSphere: BoundingSphere, result?: CullingVolume): 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.

返回

CullingVolume

The culling volume created from the bounding sphere.


computeVisibility()

computeVisibility(boundingVolume: any): Intersect

Determines whether a bounding volume intersects the culling volume.

参数

boundingVolume

any

The bounding volume whose intersection with the culling volume is to be tested.

返回

Intersect

Intersect.OUTSIDE, Intersect.INTERSECTING, or Intersect.INSIDE.

构造函数

构造函数

new CullingVolume(planes?: Cartesian4[]): CullingVolume

参数

planes?

Cartesian4[]

返回

CullingVolume

KBE3D @3.0.0 Copyright © 2024-present KBE3D