BufferPrimitive

View bound to the underlying buffer data of a BufferPrimitiveCollection. Abstract.

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

This feature is not final and is subject to change without Cesium's standard deprecation policy.

参考:

成员(属性)

Feature ID associated with the primitive; not required to be unique.
Whether primitive is shown.

方法

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.
参数名称 类型 描述信息
primitive BufferPrimitive
result BufferPrimitive
返回值:
Returns the color of primitive.
参数名称 类型 描述信息
result Color
返回值:
Updates the color of primitive.
参数名称 类型 描述信息
color Color
Returns a JSON-serializable object representing the primitive. This encoding is not memory-efficient, and should generally be used for debugging and testing.
返回值:
JSON-serializable object.