Mixins (discretize.mixins)#

The mixins module provides a set of tools for interfacing discretize with external libraries such as VTK, OMF, and matplotlib. These modules are only imported if those external packages are available in the active Python environment and provide extra functionality that different finite volume meshes can inherit.

Mixin Classes#

TensorMeshIO()

Class for managing the input/output of tensor meshes and models.

TreeMeshIO()

Class for managing the input/output of tree meshes and models.

InterfaceMPL()

Class for plotting discretize meshes with matplotlib.

InterfaceVTK()

VTK interface for discretize meshes.

InterfaceOMF()

Convert between omf and discretize objects.

Other Optional Classes#

Slicer(mesh, v[, xslice, yslice, zslice, ...])

Plot slices of a 3D volume, interactively (scroll wheel).