实验性 Experimental
此功能不是最终版本,可能会在没有 Cesium 标准弃用政策的情况下进行更改。 This feature is not final and is subject to change without Cesium's standard deprecation policy.
另见: See:
继承 Extends
成员 Members
与图元关联的特征 ID;不要求是唯一的。 Feature ID associated with the primitive; not required to be unique.
- 继承自: Inherited From:
是否显示原语。 Whether primitive is shown.
- 继承自: Inherited From:
该折线中的位置(顶点)计数,VEC3 元素的数量。 Count of positions (vertices) in this polyline, number of VEC3 elements.
方法 Methods
static Cesium.BufferPolyline.clone(polyline, result) → BufferPolyline
将数据从源折线复制到结果。如果结果折线不是新的(集合中的最后一条折线),则源折线和结果折线必须具有相同的顶点数。 Copies data from source polyline to result. If the result polyline is not new (the last polyline in the collection) then source and result polylines must have the same vertex counts.
| 名称 Name | 类型 Type | 说明 Description |
|---|---|---|
polyline |
BufferPolyline | |
result |
BufferPolyline |
返回: Returns:
getMaterial(result) → BufferPrimitiveMaterial
| 名称 Name | 类型 Type | 说明 Description |
|---|---|---|
result |
BufferPrimitiveMaterial |
返回: Returns:
- 继承自: Inherited From:
返回此折线顶点位置的数组视图。如果给出“结果”参数,则顶点位置将写入该数组并返回。否则,在集合内存上返回一个 ArrayView - 对此数组的更改不会触发渲染更新,这需要“.setPositions()”。 Returns an array view of this polyline's vertex positions. If 'result' argument is given, vertex positions are written to that array and returned. Otherwise, returns an ArrayView on collection memory — changes to this array will not trigger render updates, which requires `.setPositions()`.
| 名称 Name | 类型 Type | 说明 Description |
|---|---|---|
result |
TypedArray | 可选 optional 返回 {TypedArray} return {TypedArray} |
| 名称 Name | 类型 Type | 说明 Description |
|---|---|---|
material |
BufferPrimitiveMaterial |
- 继承自: Inherited From:
| 名称 Name | 类型 Type | 说明 Description |
|---|---|---|
positions |
TypedArray |
返回表示折线的 JSON 可序列化对象。这种编码不节省内存,通常应该用于调试和测试。 Returns a JSON-serializable object representing the polyline. This encoding is not memory-efficient, and should generally be used for debugging and testing.
返回: Returns:
JSON 可序列化对象。 JSON-serializable object.
- 继承自: Inherited From:
