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 mayavi.

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: mayavi figure or None

If passed, plot to existing figure

figsize: tuple (x, y)

Figure size (if figure is None)

Returns
figure: mayavi figure

Contains the plotted mesh