add_mesh#
- PrimePlotter.add_mesh(mesh, metadata=None, **pyvista_kwargs)#
Add a mesh or
MeshObjectPlotto the scene, optionally tracking metadata.- Parameters:
mesh (
pyvista.DataSetorMeshObjectPlot) – Raw PyVista mesh, or aMeshObjectPlotholding one as.mesh.metadata (
DisplayMeshInfo, default:None) – Display information of the mesh. When given, the actor is registered ininfo_actor_mapso that the widgets can act on it.**pyvista_kwargs (
dict, default:None) – Keyword arguments passed toscene.add_mesh().
- Return type:
pyvista.Actor- Returns:
Actor added to the scene.