add_mesh#

PrimePlotter.add_mesh(mesh, metadata=None, **pyvista_kwargs)#

Add a mesh or MeshObjectPlot to the scene, optionally tracking metadata.

Parameters:
  • mesh (pyvista.DataSet or MeshObjectPlot) – Raw PyVista mesh, or a MeshObjectPlot holding one as .mesh.

  • metadata (DisplayMeshInfo, default: None) – Display information of the mesh. When given, the actor is registered in info_actor_map so that the widgets can act on it.

  • **pyvista_kwargs (dict, default: None) – Keyword arguments passed to scene.add_mesh().

Return type:

pyvista.Actor

Returns:

Actor added to the scene.

Examples using PrimePlotter.add_mesh#

Using PyVista for Graphics in PyPrimeMesh

Using PyVista for Graphics in PyPrimeMesh