new Cesium.EllipsoidOutlineGeometry(options)

以原产地为中心的椭圆形轮廓描述.
Name Type Description
options object optional 下列属性的对象 :
Name Type Default Description
radii Cartesian3 Cartesian3(1.0, 1.0, 1.0) optional The radii of the ellipsoid in the x, y, and z directions.
innerRadii Cartesian3 options.radii optional The inner radii of the ellipsoid in the x, y, and z directions.
minimumClock number 0.0 optional 从正X轴测量到正Y轴的xy平面上的最低倾角.
maximumClock number 2*PI optional 从正X轴向正Y轴测得的xy平面中的最大倾角.
minimumCone number 0.0 optional 从正Z轴和向负Z轴测得的最小角.
maximumCone number PI optional 从正Z轴和向负Z轴测得的最大角.
stackPartitions number 10 optional 椭圆形的堆栈数(1大于平行线数).
slicePartitions number 8 optional The count of slices for the ellipsoid (Equal to the number of radial lines).
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 The index into the array at which to start packing the elements.
Returns:
装入的阵列

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

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