描述地形或 3D Tiles 上的多线段。仅用于
GroundPolylinePrimitive。
| Name | Type | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
包含以下属性的选项:
|
Throws:
-
DeveloperError : 至少需要两个位置。
Example:
const positions = Cesium.Cartesian3.fromDegreesArray([
-112.1340164450331, 36.05494287836128,
-112.08821010582645, 36.097804071380715,
-112.13296079730024, 36.168769146801104
]);
const geometry = new Cesium.GroundPolylineGeometry({
positions : positions
});
See:
Members
多线段必须遵循的路径类型。有效选项为
ArcType.GEODESIC 和 ArcType.RHUMB。
-
Default Value:
ArcType.GEODESIC
用于插值 options.points 的距离间隔。零表示不进行插值。
默认值 9999.0 允许以 32 位浮点数获得厘米级准确度。
-
Default Value:
9999.0
在创建几何体时,是否将在最后和第一个线位置之间添加线段,使此多线段形成一个环。
如果几何体有两个位置,则将忽略此参数。
-
Default Value:
false
屏幕空间宽度(以像素为单位)。
Methods
将提供的实例存储到提供的数组中.
| Name | Type | Default | Description |
|---|---|---|---|
value |
PolygonGeometry | 要打包的值. | |
array |
Array.<number> | 要打包到的数组. | |
startingIndex |
number |
0
|
optional 开始打包元素的数组索引. |
Returns:
被打包成的数组
从打包数组中检索实例.
| Name | Type | Default | Description |
|---|---|---|---|
array |
Array.<number> | 压缩数组. | |
startingIndex |
number |
0
|
optional 需要解包的元素的起始索引. |
result |
PolygonGeometry | optional 存储结果的对象. |
