描述給定原點和方向的截錐體。
new FrustumGeometry(options)
Parameters:
options
(Object)
Name | Description |
---|---|
options.frustum
(PerspectiveFrustum | OrthographicFrustum)
|
截錐。 |
options.origin
Cartesian3
|
截錐的起源。 |
options.orientation
Quaternion
|
截錐的方位。 |
options.vertexFormat
VertexFormat
default VertexFormat.DEFAULT
|
要計算的頂點屬性。 |
Members
packedLength : Number
用于將對象打包到數組中的元素數。
Methods
(static) createGeometry(frustumGeometry) → {Geometry|undefined}
計算截錐的幾何表示,包括其頂點、索引和邊界球。
Parameters:
將提供的實例存儲到提供的數組中。
Parameters:
array
(Array.<Number>)
要打包的數組。
startingIndex
(Number)
(default 0
)
數組中開始打包元素的索引。
從壓縮數組中檢索實例。
Parameters:
array
(Array.<Number>)
壓縮數組。
startingIndex
(Number)
(default 0
)
要解包的元素的起始索引。