描述以原点为中心的椭球轮廓。
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
optional
具有以下属性的对象:
|
Throws:
-
DeveloperError : options.stackPartitions必须大于或等于1。
-
DeveloperError : options.slicePartitions必须大于或等于0。
-
DeveloperError : options.subdivisions必须大于或等于0。
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
用于将对象打包到数组中的元素数量。
Methods
static Cesium.EllipsoidOutlineGeometry.createGeometry(ellipsoidGeometry) → Geometry|undefined
计算椭球轮廓的几何表示,包括其顶点、索引和包围球。
| Name | Type | Description |
|---|---|---|
ellipsoidGeometry |
EllipsoidOutlineGeometry | 椭球轮廓的描述。 |
Returns:
计算得到的顶点和索引。
将提供的实例存储到提供的数组中。
| 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实例。
