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:
getColor(result) → Color
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.
