EllipsoidOutlineGeometry

new Cesium.EllipsoidOutlineGeometry(options)

以原点为中心的椭球体轮廓的描述。
Name Type Description
options object optional 对象,具有以下属性:
Name Type Default Description
radii Cartesian3 Cartesian3(1.0, 1.0, 1.0) optional 椭球体在 x、y 和 z 方向上的半径。
innerRadii Cartesian3 options.radii optional 椭球体在 x、y 和 z 方向上的内半径。
minimumClock number 0.0 optional 位于 xy 平面上从正 x 轴到正 y 轴测量的最小角度。
maximumClock number 2*PI optional 位于 xy 平面上从正 x 轴到正 y 轴测量的最大角度。
minimumCone number 0.0 optional 从正 z 轴到负 z 轴测量的最小角度。
maximumCone number PI optional 从正 z 轴到负 z 轴测量的最大角度。
stackPartitions number 10 optional 椭球体的堆栈数(比平行线的数量大 1)。
slicePartitions number 8 optional 椭球体的切片数(等于径向线的数量)。
subdivisions number 128 optional 每行的点数,确定曲率的粒度。
Throws:
  • DeveloperError : options.stackPartitions must be greater than or equal to one.
  • DeveloperError : options.slicePartitions must be greater than or equal to zero.
  • DeveloperError : options.subdivisions must be greater than or equal to zero.
Example:
const ellipsoid = new Cesium.EllipsoidOutlineGeometry({
  radii : new Cesium.Cartesian3(1000000.0, 500000.0, 500000.0),
  stackPartitions: 6,
  slicePartitions: 5
});
const geometry = Cesium.EllipsoidOutlineGeometry.createGeometry(ellipsoid);

Members

static Cesium.EllipsoidOutlineGeometry.packedLength : number

用于将对象打包到数组中的元素数量。

Methods

static Cesium.EllipsoidOutlineGeometry.createGeometry(ellipsoidGeometry)Geometry|undefined

计算椭球体轮廓的几何表示,包括其顶点、索引和边界球体。
Name Type Description
ellipsoidGeometry EllipsoidOutlineGeometry 椭球体轮廓的描述。
Returns:
计算的顶点和索引。

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

将提供的实例存储到提供的数组中。
Name Type Default Description
value EllipsoidOutlineGeometry 要打包的值。
array Array.<number> 要装入的数组。
startingIndex number 0 optional 开始打包元素的数组的索引。
Returns:
被装入的数组

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

从打包数组中检索实例。
Name Type Default Description
array Array.<number> 打包数组。
startingIndex number 0 optional 要解压缩的元素的起始索引。
result EllipsoidOutlineGeometry optional 要在其中存储结果的对象。
Returns:
修改后的结果参数 或新的 EllipsoidOutlineGeometry 实例(如果未提供)。
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.