new Cesium.SphereOutlineGeometry(options)

球体轮廓描述.
Name Type Description
options object optional 下列属性的对象 :
Name Type Default Description
radius number 1.0 optional 球体的半径.
stackPartitions number 10 optional 球体的堆积数(1大于平行线数).
slicePartitions number 8 optional The count of slices for the sphere (Equal to the number of radial lines).
subdivisions number 200 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 sphere = new Cesium.SphereOutlineGeometry({
  radius : 100.0,
  stackPartitions : 6,
  slicePartitions: 5
});
const geometry = Cesium.SphereOutlineGeometry.createGeometry(sphere);

Members

static Cesium.SphereOutlineGeometry.packedLength : number

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

Methods

static Cesium.SphereOutlineGeometry.createGeometry(sphereGeometry)Geometry|undefined

计算一个球体的轮廓的几何表示,包括它的顶点,指数和边框.
Name Type Description
sphereGeometry SphereOutlineGeometry 球体纲要说明.
Returns:
计算出的顶点和指数.

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

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

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

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