ModelGraphics - Cesium Documentation

# ModelGraphics

#### new ModelGraphics(options)

  A 3D model based on glTF, the runtime asset format for WebGL, OpenGL ES, and OpenGL. The position and orientation of the model is determined by the containing `Entity`.

  Cesium includes support for glTF geometry, materials, animations, and skinning. Cameras and lights are not currently supported.

  Name | Type | Description
  --- | --- | ---

  `options`

  Object

  optional Object with the following properties:

  Name | Type | Default | Description
  --- | --- | --- | ---
  `uri` | Property |  | optional A string Property specifying the URI of the glTF asset.
  `show` | Property | `true` | optional A boolean Property specifying the visibility of the model.
  `scale` | Property | `1.0` | optional A numeric Property specifying a uniform linear scale.
  `minimumPixelSize` | Property | `0.0` | optional A numeric Property specifying the approximate minimum pixel size of the model regardless of zoom.

  ##### Demo:

  - Cesium Sandcastle 3D Models Demo

  ##### See:

  - 3D Models Tutorial
  Source: DataSources/ModelGraphics.js, line 38

### Members

#### readonlydefinitionChanged :Event

  Gets the event that is raised whenever a property or sub-property is changed or modified.
  Source: DataSources/ModelGraphics.js, line 59

#### minimumPixelSize :Property

  Gets or sets the numeric Property specifying the approximate minimum pixel size of the model regardless of zoom. This can be used to ensure that a model is visible even when the viewer zooms out. When `0.0`, no minimum size is enforced.
  Default Value: `0.0`
  Source: DataSources/ModelGraphics.js, line 92

#### scale :Property

  Gets or sets the numeric Property specifying a uniform linear scale for this model. Values greater than 1.0 increase the size of the model while values less than 1.0 decrease it.
  Default Value: `1.0`
  Source: DataSources/ModelGraphics.js, line 81

#### show :Property

  Gets or sets the boolean Property specifying the visibility of the model.
  Default Value: `true`
  Source: DataSources/ModelGraphics.js, line 71

#### uri :Property

  Gets or sets the string Property specifying the URI of the glTF asset.
  Source: DataSources/ModelGraphics.js, line 99

### Methods

#### clone(result) → ModelGraphics

  Duplicates this instance.

  Name | Type | Description
  --- | --- | ---
  `result` | ModelGraphics | optional The object onto which to store the result.

  ##### Returns:

  The modified result parameter or a new instance if one was not provided.
  Source: DataSources/ModelGraphics.js, line 108

#### merge(source)

  Assigns each unassigned property on this object to the value of the same property on the provided source object.

  Name | Type | Description
  --- | --- | ---
  `source` | ModelGraphics | The object to be merged into this object.

  Source: DataSources/ModelGraphics.js, line 125