BufferPrimitive

绑定到 BufferPrimitiveCollection 底层缓冲数据的视图。抽象类。

BufferPrimitive 实例旨在迭代大型集合时重用, 并在对该图元执行读/写操作时临时绑定到图元索引, 然后再重新绑定到下一个图元,使用 享元模式

abstract new Cesium.BufferPrimitive()

Experimental

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

See:

Members

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

Methods

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

将源图元的数据复制到结果。如果结果图元不是新的 (集合中的最后一个图元),则源图元和结果图元 必须具有相同的顶点数。
Name Type Description
primitive BufferPrimitive
result BufferPrimitive
Returns:
Name Type Description
result BufferPrimitiveMaterial
Returns:
Name Type Description
material BufferPrimitiveMaterial
返回表示该图元的可 JSON 序列化的对象。此编码 不具有内存效率,通常应用于调试和测试。
Returns:
可 JSON 序列化的对象。
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.