描述代表以原点为中心的平面的几何形状,具有单位宽度和长度.
| Name | Type | Description | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
optional
下列属性的对象 :
|
Example:
const planeGeometry = new Cesium.PlaneGeometry({
vertexFormat : Cesium.VertexFormat.POSITION_ONLY
});
Members
Methods
static Cesium.PlaneGeometry.createGeometry(planeGeometry) → Geometry|undefined
计算平面的几何表示,包括它的顶点,指数,和边框.
| Name | Type | Description |
|---|---|---|
planeGeometry |
PlaneGeometry | 飞机简介. |
Returns:
计算出的顶点和指数.
将所提供的实例存储到所提供的数组中.
| Name | Type | Default | Description |
|---|---|---|---|
value |
PlaneGeometry | 包装的价值. | |
array |
Array.<number> | 装入的阵列. | |
startingIndex |
number |
0
|
optional The index into the array at which to start packing the elements. |
Returns:
装入的阵列
static Cesium.PlaneGeometry.unpack(array, startingIndex, result) → PlaneGeometry
从组合的数组中获取实例 .
| Name | Type | Default | Description |
|---|---|---|---|
array |
Array.<number> | 装填的阵列. | |
startingIndex |
number |
0
|
optional The starting index of the element to be unpacked. |
result |
PlaneGeometry | optional 存储结果的对象. |
Returns:
如果不提供经过修改的结果参数或一个新的 PlaneGeometry 实例.