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.

See:

Members

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:
Returns the color of primitive.
Name Type Description
result Color
Returns:
Updates the color of primitive.
Name Type Description
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.
Returns:
JSON-serializable object.
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.