Skip to content

KBE3D / KBCore / Cesium / PlaneGeometry

类: PlaneGeometry

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

示例

ts
const planeGeometry = new Cesium.PlaneGeometry({
  vertexFormat : Cesium.VertexFormat.POSITION_ONLY
});

参数

Object with the following properties:

参数

The vertex attributes to be computed.

属性

packedLength

static packedLength: number

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

方法

pack()

static pack(value: PlaneGeometry, array: number[], startingIndex?: number): number[]

Stores the provided instance into the provided array.

参数

value

PlaneGeometry

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()

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

Retrieves an instance from a packed array.

参数

array

number[]

The packed array.

startingIndex?

number

The starting index of the element to be unpacked.

result?

PlaneGeometry

The object into which to store the result.

返回

PlaneGeometry

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


createGeometry()

static createGeometry(planeGeometry: PlaneGeometry): Geometry | undefined

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

参数

planeGeometry

PlaneGeometry

A description of the plane.

返回

Geometry | undefined

The computed vertices and indices.

构造函数

构造函数

new PlaneGeometry(options?: { vertexFormat?: VertexFormat; }): PlaneGeometry

参数

options?
vertexFormat?

VertexFormat

返回

PlaneGeometry

KBE3D @3.0.0 Copyright © 2024-present KBE3D