@JsType(isNative=true, namespace="Cesium", name="CullingVolume") public class CullingVolume extends Object
Modifier and Type | Field and Description |
---|---|
Cartesian4[] |
planes
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.
|
Constructor and Description |
---|
CullingVolume()
The culling volume defined by planes.
|
CullingVolume(Cartesian4[] planes)
The culling volume defined by planes.
|
Modifier and Type | Method and Description |
---|---|
int |
computeVisibility(Object boundingVolume)
Determines whether a bounding volume intersects the culling volume.
|
static CullingVolume |
fromBoundingSphere(BoundingSphere boundingSphere)
Constructs a culling volume from a bounding sphere.
|
static CullingVolume |
fromBoundingSphere(BoundingSphere boundingSphere,
CullingVolume result)
Constructs a culling volume from a bounding sphere.
|
@JsProperty public Cartesian4[] planes
@JsConstructor public CullingVolume()
@JsConstructor public CullingVolume(Cartesian4[] planes)
planes
- An array of clipping planes.public static CullingVolume fromBoundingSphere(BoundingSphere boundingSphere)
boundingSphere
- The bounding sphere used to create the culling volume.public static CullingVolume fromBoundingSphere(BoundingSphere boundingSphere, CullingVolume result)
boundingSphere
- The bounding sphere used to create the culling volume.result
- The object onto which to store the result.public int computeVisibility(Object boundingVolume)
boundingVolume
- The bounding volume whose intersection with the culling volume is to be tested.Intersect.OUTSIDE()
, Intersect.INTERSECTING()
, or Intersect.INSIDE()
.Intersect
Copyright © 2019. All rights reserved.