BufferPolyline

绑定到 BufferPolylineCollection 底层缓冲数据的视图。

BufferPolyline 实例是享元: 单个 BufferPolyline 实例可以临时绑定到 BufferPolylineCollection 中的任意概念 "折线",允许以最小的内存占用迭代和更新非常大的集合。

由两个 (2) 或更多位置表示。

new Cesium.BufferPolyline()

Experimental

此功能尚未最终确定,可能会在不遵循 Cesium 标准弃用政策的情况下进行更改。

See:

Extends

Members

与图元关联的特征 ID;不需要唯一。
Inherited From:
图元是否显示。
Inherited From:

readonly vertexCount : number

此折线中的位置(顶点)数量,VEC3 元素数量。

Methods

static Cesium.BufferPolyline.clone(polyline, result)BufferPolyline

将源折线的数据复制到结果。如果结果折线不是新的 (集合中的最后一条折线),则源折线和结果折线 必须具有相同的顶点数。
Name Type Description
polyline BufferPolyline
result BufferPolyline
Returns:
Name Type Description
result BufferPrimitiveMaterial
Returns:
Inherited From:
返回此折线顶点位置的数组视图。如果给定 'result' 参数,顶点位置将写入该数组并返回。 否则,返回集合内存上的 ArrayView — 对此数组的更改 不会触发渲染更新,这需要 `.setPositions()`。
Name Type Description
result TypedArray optional return {TypedArray}
Name Type Description
material BufferPrimitiveMaterial
Inherited From:
Name Type Description
positions TypedArray
返回表示该折线的可 JSON 序列化的对象。此编码 不具有内存效率,通常应用于调试和测试。
Returns:
可 JSON 序列化的对象。
Inherited From:
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.