气瓶轮廓描述.
| Name | Type | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
下列属性的对象 :
|
Throws:
-
DeveloperError : options.length must be greater than 0.
-
DeveloperError : options.topRadius must be greater than 0.
-
DeveloperError : options.bottomRadius must be greater than 0.
-
DeveloperError : bottomRadius and topRadius cannot both equal 0.
-
DeveloperError : options.slices must be greater than or equal to 3.
Example:
// create cylinder geometry
const cylinder = new Cesium.CylinderOutlineGeometry({
length: 200000,
topRadius: 80000,
bottomRadius: 200000,
});
const geometry = Cesium.CylinderOutlineGeometry.createGeometry(cylinder);
See:
Members
Methods
static Cesium.CylinderOutlineGeometry.createGeometry(cylinderGeometry) → Geometry|undefined
计算一个圆柱的轮廓的几何表示,包括它的顶点,指数和边框.
| Name | Type | Description |
|---|---|---|
cylinderGeometry |
CylinderOutlineGeometry | 气瓶轮廓简介. |
Returns:
计算出的顶点和指数.
将所提供的实例存储到所提供的数组中.
| 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:
如果不提供经过修改的结果参数或新的圆柱外线测量实例.