Skip to content

KBE3D / KBCore / Cesium / PlaneOutlineGeometry

类: PlaneOutlineGeometry

Describes geometry representing the outline of a plane centered at the origin, with a unit width and length.

属性

packedLength

static packedLength: number

The number of elements used to pack the object into an array.

方法

pack()

static pack(value: PlaneOutlineGeometry, array: number[]): number[]

Stores the provided instance into the provided array.

参数

value

PlaneOutlineGeometry

The value to pack.

array

number[]

The array to pack into.

返回

number[]

The array that was packed into


unpack()

static unpack(array: number[], startingIndex?: number, result?: PlaneOutlineGeometry): PlaneOutlineGeometry

Retrieves an instance from a packed array.

参数

array

number[]

The packed array.

startingIndex?

number

The starting index of the element to be unpacked.

result?

PlaneOutlineGeometry

The object into which to store the result.

返回

PlaneOutlineGeometry

The modified result parameter or a new PlaneOutlineGeometry instance if one was not provided.


createGeometry()

static createGeometry(): Geometry | undefined

Computes the geometric representation of an outline of a plane, including its vertices, indices, and a bounding sphere.

返回

Geometry | undefined

The computed vertices and indices.

构造函数

构造函数

new PlaneOutlineGeometry(): PlaneOutlineGeometry

返回

PlaneOutlineGeometry

KBE3D @3.0.0 Copyright © 2024-present KBE3D