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
.meshattribute).- metadata
DisplayMeshInfo,optional If provided, registers the actor in
info_actor_mapfor widget support.- **pyvista_kwargs
Additional keyword arguments passed to
scene.add_mesh().
- Returns:
- :
actorThe PyVista actor added to the scene.