以原点为中心的椭球体轮廓的描述。
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
optional
具有以下属性的对象:
|
Throws:
-
DeveloperError :options.stackPartitions 必须大于或等于一。
-
DeveloperError :options.slicePartitions 必须大于或等于零。
-
DeveloperError :options.subdivisions 必须大于或等于零。
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:
修改后的 result 参数,如果未提供则返回一个新的 EllipsoidOutlineGeometry 实例。
