以原产地为中心的椭圆形轮廓描述.
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
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
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 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:
如果不提供经过修改的结果参数或一个新的椭圆形外观图形实例.