new Cesium.CoplanarPolygonOutlineGeometry(options)

描述由任意的同位素位置组成的多边形的轮廓.
Name Type Description
options object 下列属性的对象 :
Name Type Description
polygonHierarchy PolygonHierarchy 多边形结构可以包括孔.
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

packedLength : number

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

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 下列属性的对象 :
Name Type Description
positions Array.<Cartesian3> 定义多边形角点的一系列位置.
Returns:

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

将所提供的实例存储到所提供的数组中.
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实例.
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.