    

 ## On this page

  

 

 # Interactive graphics using PyVista

 Last update: 16.10.2025 

PyPrimeMesh provides support for interactive graphical visualisation using [PyVista](https://docs.pyvista.org/)if this package is installed as a dependency.

This code shows how to display the model using the `Graphics` class:

```pycon
>>> from ansys.meshing.prime.graphics import PrimePlotter
>>> import ansys.meshing.prime as prime
>>> display = PrimePlotter()
>>> display.plot(model)
>>> display.show()

```

![Graphics](/sites/default/files/git_ansys/primemesh_2025_r2_sp02_upd_1/graphics.png)

Using the [`ScopeDefinition`](../api/_autosummary/ansys.meshing.prime.ScopeDefinition.md#ansys.meshing.prime.ScopeDefinition) class allows you to limit the display to particular regions of the model:

```pycon
>>> # display the first part only
>>> display = PrimePlotter()
>>> display.plot(
...     model, scope=prime.ScopeDefinition(model, part_expression=model.parts[0].name)
... )
>>> display.show()

```

![Graphics Part](/sites/default/files/git_ansys/primemesh_2025_r2_sp02_upd_1/graphics_part.png)

Selections can be made of displayed objects. If selections in the window are made, information about them can be printed to the console. Selections can also be hidden.

These graphics buttons are provided to help navigate the model and to carry out basic verifications:

![Graphics buttton](/sites/default/files/git_ansys/primemesh_2025_r2_sp02_upd_1/graphics_buttons(2).png)