Appearance
KBE3D / KBCore / Cesium / FrustumOutlineGeometry
类: FrustumOutlineGeometry
A description of the outline of a frustum with the given the origin and orientation.
参数
Object with the following properties:
参数
The frustum.
参数
The origin of the frustum.
参数
The orientation of the frustum.
属性
packedLength
packedLength:
number
The number of elements used to pack the object into an array.
方法
pack()
staticpack(value:FrustumOutlineGeometry,array:number[],startingIndex?:number):number[]
Stores the provided instance into the provided array.
参数
value
FrustumOutlineGeometry
The value to pack.
array
number[]
The array to pack into.
startingIndex?
number
The index into the array at which to start packing the elements.
返回
number[]
The array that was packed into
unpack()
staticunpack(array:number[],startingIndex?:number,result?:FrustumOutlineGeometry):void
Retrieves an instance from a packed array.
参数
array
number[]
The packed array.
startingIndex?
number
The starting index of the element to be unpacked.
result?
FrustumOutlineGeometry
The object into which to store the result.
返回
void
createGeometry()
staticcreateGeometry(frustumGeometry:FrustumOutlineGeometry):Geometry|undefined
Computes the geometric representation of a frustum outline, including its vertices, indices, and a bounding sphere.
参数
frustumGeometry
FrustumOutlineGeometry
A description of the frustum.
返回
Geometry | undefined
The computed vertices and indices.
构造函数
构造函数
new FrustumOutlineGeometry(
options: {frustum:PerspectiveFrustum|OrthographicFrustum;origin:Cartesian3;orientation:Quaternion; }):FrustumOutlineGeometry
参数
options
frustum
PerspectiveFrustum | OrthographicFrustum
origin
orientation
返回
FrustumOutlineGeometry
