new Cesium.CorridorOutlineGeometry(options)

走廊大纲说明.
Name Type Description
options object 下列属性的对象 :
Name Type Default Description
positions Array.<Cartesian3> 一系列确定走廊轮廓中心的位置.
width number 走廊轮廓边缘之间的距离.
ellipsoid Ellipsoid Ellipsoid.default optional The ellipsoid to be used as a reference.
granularity number CesiumMath.RADIANS_PER_DEGREE optional The distance, in radians, between each latitude and longitude. Determines the number of positions in the buffer.
height number 0 optional The distance in meters between the positions and the ellipsoid surface.
extrudedHeight number optional 挤压面与椭圆表面的距离以米计.
cornerType CornerType CornerType.ROUNDED optional Determines the style of the corners.
Example:
const corridor = new Cesium.CorridorOutlineGeometry({
  positions : Cesium.Cartesian3.fromDegreesArray([-72.0, 40.0, -70.0, 35.0]),
  width : 100000
});
See:

Members

packedLength : number

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

Methods

static Cesium.CorridorOutlineGeometry.createGeometry(corridorOutlineGeometry)Geometry|undefined

计算一个走廊的几何代表,包括其顶点、指数和边框.
Name Type Description
corridorOutlineGeometry CorridorOutlineGeometry 走廊简介.
Returns:
计算出的顶点和指数.

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

将所提供的实例存储到所提供的数组中.
Name Type Default Description
value CorridorOutlineGeometry 包装的价值.
array Array.<number> 装入的阵列.
startingIndex number 0 optional The index into the array at which to start packing the elements.
Returns:
装入的阵列

static Cesium.CorridorOutlineGeometry.unpack(array, startingIndex, result)CorridorOutlineGeometry

从组合的数组中获取实例 .
Name Type Default Description
array Array.<number> 装填的阵列.
startingIndex number 0 optional The starting index of the element to be unpacked.
result CorridorOutlineGeometry optional 存储结果的对象.
Returns:
如果不提供经修改的结果参数或一个新的走廊外观测量实例.
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.