描述由任意的同位素位置组成的多边形的轮廓.
| Name | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
options |
object |
下列属性的对象 :
|
Example:
const polygonOutline = new Cesium.CoplanarPolygonOutlineGeometry({
positions : Cesium.Cartesian3.fromDegreesArrayHeights([
-90.0, 30.0, 0.0,
-90.0, 30.0, 1000.0,
-80.0, 30.0, 1000.0,
-80.0, 30.0, 0.0
])
});
const geometry = Cesium.CoplanarPolygonOutlineGeometry.createGeometry(polygonOutline);
See:
Members
Methods
static Cesium.CoplanarPolygonOutlineGeometry.createGeometry(polygonGeometry) → Geometry|undefined
计算任意的coplanar多边形的几何表示,包括其顶点,指数,以及边框.
| Name | Type | Description |
|---|---|---|
polygonGeometry |
CoplanarPolygonOutlineGeometry | 多边形描述. |
Returns:
计算出的顶点和指数.
static Cesium.CoplanarPolygonOutlineGeometry.fromPositions(options) → CoplanarPolygonOutlineGeometry
从一系列位置来描述一个同位素多边形轮廓.
| Name | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
options |
object |
下列属性的对象 :
|
Returns:
将所提供的实例存储到所提供的数组中.
| Name | Type | Default | Description |
|---|---|---|---|
value |
CoplanarPolygonOutlineGeometry | 包装的价值. | |
array |
Array.<number> | 装入的阵列. | |
startingIndex |
number |
0
|
optional The index into the array at which to start packing the elements. |
Returns:
装入的阵列
static Cesium.CoplanarPolygonOutlineGeometry.unpack(array, startingIndex, result) → CoplanarPolygonOutlineGeometry
从组合的数组中获取实例 .
| Name | Type | Default | Description |
|---|---|---|---|
array |
Array.<number> | 装填的阵列. | |
startingIndex |
number |
0
|
optional The starting index of the element to be unpacked. |
result |
CoplanarPolygonOutlineGeometry | optional 存储结果的对象. |
Returns:
如果不提供修改的结果参数或新的CoplanarPolygon OutlineGeometry实例.