add_mesh#

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

Add a mesh or MeshObjectPlot to the scene with optional metadata tracking.

Parameters:
mesh: pyvista.DataSet or MeshObjectPlot

A raw PyVista mesh or a MeshObjectPlot (which has a .mesh attribute).

metadataDisplayMeshInfo, optional

If provided, registers the actor in info_actor_map for widget support.

**pyvista_kwargs

Additional keyword arguments passed to scene.add_mesh().

Returns:
:
actor

The PyVista actor added to the scene.

Examples using PrimePlotter.add_mesh#

Using PyVista for Graphics in PyPrimeMesh

Using PyVista for Graphics in PyPrimeMesh