GeometryVisualizer - Cesium Documentation

# GeometryVisualizer

#### new GeometryVisualizer(type, scene, entityCollection)

  A general purpose visualizer for geometry represented by `Primitive` instances.

  Name | Type | Description
  --- | --- | ---
  `type` | GeometryUpdater | The updater to be used for creating the geometry.
  `scene` | Scene | The scene the primitives will be rendered in.
  `entityCollection` | EntityCollection | The entityCollection to visualize.

  Source: DataSources/GeometryVisualizer.js, line 115

### Methods

#### destroy()

  Removes and destroys all primitives created by this instance.
  Source: DataSources/GeometryVisualizer.js, line 298

#### isDestroyed() → Boolean

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

  ##### Returns:

  True if this object was destroyed; otherwise, false.
  Source: DataSources/GeometryVisualizer.js, line 291

#### 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.
  Source: DataSources/GeometryVisualizer.js, line 162