English中文

BufferPrimitive

绑定到底层缓冲区数据的视图 View bound to the underlying buffer data of a BufferPrimitiveCollection。抽象的。 . Abstract.

BufferPrimitive 实例旨在在迭代大型集合时重用,并在对该基元执行读/写操作时临时绑定到基元索引,然后使用以下方法反弹到下一个基元 BufferPrimitive instances are intended to be reused when iterating over large collections, and temporarily bound to a primitive index while performing read/write operations on that primitive, before being rebound to the next primitive, using the flyweight pattern.

abstract new Cesium.BufferPrimitive()

实验性 Experimental

此功能不是最终版本,可能会在没有 Cesium 标准弃用政策的情况下进行更改。 This feature is not final and is subject to change without Cesium's standard deprecation policy.

另见: See:

成员 Members

与图元关联的特征 ID;不要求是唯一的。 Feature ID associated with the primitive; not required to be unique.
是否显示原语。 Whether primitive is shown.

方法 Methods

static Cesium.BufferPrimitive.clone(primitive, result)BufferPrimitive

将数据从源原语复制到结果。如果结果基元不是新的(集合中的最后一个基元),则源基元和结果基元必须具有相同的顶点数。 Copies data from source primitive to result. If the result primitive is not new (the last primitive in the collection) then source and result primitives must have the same vertex counts.
名称 Name 类型 Type 说明 Description
primitive BufferPrimitive
result BufferPrimitive
返回: Returns:
名称 Name 类型 Type 说明 Description
result BufferPrimitiveMaterial
返回: Returns:
名称 Name 类型 Type 说明 Description
material BufferPrimitiveMaterial
返回表示基元的 JSON 可序列化对象。这种编码不节省内存,通常应该用于调试和测试。 Returns a JSON-serializable object representing the primitive. This encoding is not memory-efficient, and should generally be used for debugging and testing.
返回: Returns:
JSON 可序列化对象。 JSON-serializable object.
需要帮助吗?获得答案的最快方法是从社区和团队那里获得答案 Need help? The fastest way to get answers is from the community and team on the Cesium Forum.