new Cesium.CircleGeometry(options)

A description of a circle on the ellipsoid. Circle geometry can be rendered with both Primitive and GroundPrimitive.
Name Type Description
options object 下列属性的对象 :
Name Type Default Description
center Cartesian3 圆形中心点在固定框中.
radius number 半径为米.
ellipsoid Ellipsoid Ellipsoid.default optional The ellipsoid the circle will be on.
height number 0.0 optional 圆圈与椭圆表面之间的米数距离.
granularity number 0.02 optional The angular distance between points on the circle in radians.
vertexFormat VertexFormat VertexFormat.DEFAULT optional The vertex attributes to be computed.
extrudedHeight number 0.0 optional 圆形外凸面与椭圆表面之间的米数距离.
stRotation number 0.0 optional 纹理坐标的旋转,以弧度表示. 正旋转是逆时针.
Throws:
Example:
// 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);
See:

Members

static Cesium.CircleGeometry.packedLength : number

用于将对象组合成数组的元素数量.

Methods

static Cesium.CircleGeometry.createGeometry(circleGeometry)Geometry|undefined

计算椭圆上一个圆的几何表示,包括它的顶点,指数,和边框.
Name Type Description
circleGeometry CircleGeometry 圆圆的描述.
Returns:
计算出的顶点和指数.

static Cesium.CircleGeometry.pack(value, array, startingIndex)Array.<number>

将所提供的实例存储到所提供的数组中.
Name Type Default Description
value CircleGeometry 包装的价值.
array Array.<number> 装入的阵列.
startingIndex number 0 optional The index into the array at which to start packing the elements.
Returns:
装入的阵列

static Cesium.CircleGeometry.unpack(array, startingIndex, result)CircleGeometry

从组合的数组中获取实例 .
Name Type Default Description
array Array.<number> 装填的阵列.
startingIndex number 0 optional The starting index of the element to be unpacked.
result CircleGeometry optional 存储结果的对象.
Returns:
未提供修改的结果参数或新圆形几何实例.
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.