Skip to content

KBE3D / KBCore / Cesium / CircleGeometry

类: CircleGeometry

A description of a circle on the ellipsoid. Circle geometry can be rendered with both Primitive and GroundPrimitive.

示例

ts
// Create a circle.
const circle = new Cesium.CircleGeometry({
  center : Cesium.Cartesian3.fromDegrees(-75.59777, 40.03883),
  radius : 100000.0
});
const geometry = Cesium.CircleGeometry.createGeometry(circle);

参数

Object with the following properties:

参数

The circle's center point in the fixed frame.

参数

The radius in meters.

参数

The ellipsoid the circle will be on.

参数

The distance in meters between the circle and the ellipsoid surface.

参数

The angular distance between points on the circle in radians.

参数

The vertex attributes to be computed.

参数

The distance in meters between the circle's extruded face and the ellipsoid surface.

参数

The rotation of the texture coordinates, in radians. A positive rotation is counter-clockwise.

属性

packedLength

static packedLength: number

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

方法

pack()

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

Stores the provided instance into the provided array.

参数

value

CircleGeometry

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

Retrieves an instance from a packed array.

参数

array

number[]

The packed array.

startingIndex?

number

The starting index of the element to be unpacked.

result?

CircleGeometry

The object into which to store the result.

返回

CircleGeometry

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


createGeometry()

static createGeometry(circleGeometry: CircleGeometry): Geometry | undefined

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

参数

circleGeometry

CircleGeometry

A description of the circle.

返回

Geometry | undefined

The computed vertices and indices.

构造函数

构造函数

new CircleGeometry(options: { center: Cartesian3; radius: number; ellipsoid?: Ellipsoid; height?: number; granularity?: number; vertexFormat?: VertexFormat; extrudedHeight?: number; stRotation?: number; }): CircleGeometry

参数

options
center

Cartesian3

radius

number

ellipsoid?

Ellipsoid

height?

number

granularity?

number

vertexFormat?

VertexFormat

extrudedHeight?

number

stRotation?

number

返回

CircleGeometry

KBE3D @3.0.0 Copyright © 2024-present KBE3D