bfieldtools.viz.plot_mesh¶
- bfieldtools.viz.plot_mesh(mesh, cull_front=False, cull_back=False, figure=None, figsize=(800, 800), **kwargs)¶
Plot the mesh surface in pyvista
- Parameters:
- mesh: Trimesh mesh object
mesh to be plotted
- cull_front: Boolean (False)
If True, cull front of mesh
- cull_back: Boolean (False)
If True, cull back of mesh
- figure: pyvista figure (Plotter) or None
If passed, plot to existing figure
- figsize: tuple (x, y)
Figure size (if figure is None)
- Returns:
- figure: PyVista figure
Contains the plotted mesh