Skip to content

KBE3D / KBCore / Cesium / CircleOutlineGeometry

类: CircleOutlineGeometry

A description of the outline of a circle on the ellipsoid.

示例

ts
// Create a circle.
const circle = new Cesium.CircleOutlineGeometry({
  center : Cesium.Cartesian3.fromDegrees(-75.59777, 40.03883),
  radius : 100000.0
});
const geometry = Cesium.CircleOutlineGeometry.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 distance in meters between the circle's extruded face and the ellipsoid surface.

参数

Number of lines to draw between the top and bottom of an extruded circle.

属性

packedLength

static packedLength: number

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

方法

pack()

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

Stores the provided instance into the provided array.

参数

value

CircleOutlineGeometry

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

Retrieves an instance from a packed array.

参数

array

number[]

The packed array.

startingIndex?

number

The starting index of the element to be unpacked.

result?

CircleOutlineGeometry

The object into which to store the result.

返回

CircleOutlineGeometry

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


createGeometry()

static createGeometry(circleGeometry: CircleOutlineGeometry): Geometry | undefined

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

参数

circleGeometry

CircleOutlineGeometry

A description of the circle.

返回

Geometry | undefined

The computed vertices and indices.

构造函数

构造函数

new CircleOutlineGeometry(options: { center: Cartesian3; radius: number; ellipsoid?: Ellipsoid; height?: number; granularity?: number; extrudedHeight?: number; numberOfVerticalLines?: number; }): CircleOutlineGeometry

参数

options
center

Cartesian3

radius

number

ellipsoid?

Ellipsoid

height?

number

granularity?

number

extrudedHeight?

number

numberOfVerticalLines?

number

返回

CircleOutlineGeometry

KBE3D @3.0.0 Copyright © 2024-present KBE3D