GeometryVisualizer

new Cesium.GeometryVisualizer(scene, entityCollection, primitives, groundPrimitives)

A general purpose visualizer for geometry represented by Primitive instances.
Name Type Default Description
scene Scene The scene the primitives will be rendered in.
entityCollection EntityCollection The entityCollection to visualize.
primitives PrimitiveCollection scene.primitives optional A collection to add primitives related to the entities
groundPrimitives PrimitiveCollection scene.groundPrimitives optional A collection to add ground primitives related to the entities

Methods

Removes and destroys all primitives created by this instance.

isDestroyed()Boolean

Returns true if this object was destroyed; otherwise, false.
Returns:
True if this object was destroyed; otherwise, false.

update(time)Boolean

Updates all of the primitives created by this visualizer to match their Entity counterpart at the given time.
Name Type Description
time JulianDate The time to update to.
Returns:
True if the visualizer successfully updated to the provided time, false if the visualizer is waiting for asynchronous primitives to be created.