new Cesium.CylinderOutlineGeometry(options)

气瓶轮廓描述.
Name Type Description
options object 下列属性的对象 :
Name Type Default Description
length number 圆筒的长度.
topRadius number 圆柱顶的半径.
bottomRadius number 气瓶底部的半径.
slices number 128 optional 气瓶周边边缘数.
numberOfVerticalLines number 16 optional 圆柱顶和底表面之间要绘制的线数.
Throws:
Example:
// create cylinder geometry
const cylinder = new Cesium.CylinderOutlineGeometry({
    length: 200000,
    topRadius: 80000,
    bottomRadius: 200000,
});
const geometry = Cesium.CylinderOutlineGeometry.createGeometry(cylinder);
See:

Members

static Cesium.CylinderOutlineGeometry.packedLength : number

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

Methods

static Cesium.CylinderOutlineGeometry.createGeometry(cylinderGeometry)Geometry|undefined

计算一个圆柱的轮廓的几何表示,包括它的顶点,指数和边框.
Name Type Description
cylinderGeometry CylinderOutlineGeometry 气瓶轮廓简介.
Returns:
计算出的顶点和指数.

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

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

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

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