Extends
Members
与该图元关联的特性 ID;不要求唯一。
- Inherited From:
是否显示该图元。
- Inherited From:
此折线中位置(顶点)的数量,即 VEC3 元素的数量。
Methods
static Cesium.BufferPolyline.clone(polyline, result) → BufferPolyline
将数据从源折线复制到结果中。如果结果折线不是新的(即集合中的最后一条折线),则源折线和结果折线必须具有相同的顶点数。
| Name | Type | Description |
|---|---|---|
polyline |
BufferPolyline | |
result |
BufferPolyline |
Returns:
getMaterial(result) → BufferPrimitiveMaterial
| 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:
