Skip to content

KBE3D / KBCore / Cesium / EllipsoidGeometry

类: EllipsoidGeometry

A description of an ellipsoid centered at the origin.

示例

ts
const ellipsoid = new Cesium.EllipsoidGeometry({
  vertexFormat : Cesium.VertexFormat.POSITION_ONLY,
  radii : new Cesium.Cartesian3(1000000.0, 500000.0, 500000.0)
});
const geometry = Cesium.EllipsoidGeometry.createGeometry(ellipsoid);

参数

Object with the following properties:

参数

The radii of the ellipsoid in the x, y, and z directions.

参数

The inner radii of the ellipsoid in the x, y, and z directions.

参数

The minimum angle lying in the xy-plane measured from the positive x-axis and toward the positive y-axis.

参数

The maximum angle lying in the xy-plane measured from the positive x-axis and toward the positive y-axis.

参数

The minimum angle measured from the positive z-axis and toward the negative z-axis.

参数

The maximum angle measured from the positive z-axis and toward the negative z-axis.

参数

The number of times to partition the ellipsoid into stacks.

参数

The number of times to partition the ellipsoid into radial slices.

参数

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: EllipsoidGeometry, array: number[], startingIndex?: number): number[]

Stores the provided instance into the provided array.

参数

value

EllipsoidGeometry

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?: EllipsoidGeometry): EllipsoidGeometry

Retrieves an instance from a packed array.

参数

array

number[]

The packed array.

startingIndex?

number

The starting index of the element to be unpacked.

result?

EllipsoidGeometry

The object into which to store the result.

返回

EllipsoidGeometry

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


createGeometry()

static createGeometry(ellipsoidGeometry: EllipsoidGeometry): Geometry | undefined

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

参数

ellipsoidGeometry

EllipsoidGeometry

A description of the ellipsoid.

返回

Geometry | undefined

The computed vertices and indices.

构造函数

构造函数

new EllipsoidGeometry(options?: { radii?: Cartesian3; innerRadii?: Cartesian3; minimumClock?: number; maximumClock?: number; minimumCone?: number; maximumCone?: number; stackPartitions?: number; slicePartitions?: number; vertexFormat?: VertexFormat; }): EllipsoidGeometry

参数

options?
radii?

Cartesian3

innerRadii?

Cartesian3

minimumClock?

number

maximumClock?

number

minimumCone?

number

maximumCone?

number

stackPartitions?

number

slicePartitions?

number

vertexFormat?

VertexFormat

返回

EllipsoidGeometry

KBE3D @3.0.0 Copyright © 2024-present KBE3D