new Cesium.EllipsoidGeometry(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 64 optional 将椭圆分割成堆的次数.
slicePartitions number 64 optional 将椭圆片分割成射线片的次数.
vertexFormat VertexFormat VertexFormat.DEFAULT optional The vertex attributes to be computed.
Throws:
Example:
const ellipsoid = new Cesium.EllipsoidGeometry({
  vertexFormat : Cesium.VertexFormat.POSITION_ONLY,
  radii : new Cesium.Cartesian3(1000000.0, 500000.0, 500000.0)
});
const geometry = Cesium.EllipsoidGeometry.createGeometry(ellipsoid);
See:
  • EllipsoidGeometry#createGeometry

Members

static Cesium.EllipsoidGeometry.packedLength : number

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

Methods

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

计算椭圆形的几何表示,包括它的顶点,指数,和边框.
Name Type Description
ellipsoidGeometry EllipsoidGeometry 椭圆形的描述.
Returns:
计算出的顶点和指数.

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

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

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

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