Volume

Methods for converting volumetric data objects

Volume Shape

omfvista.volume.get_volume_shape(vol)[source]

Returns the shape of a gridded volume

Volume Grid Geometry to VTK

omfvista.volume.volume_grid_geom_to_vtk(volgridgeom)[source]

Convert the 3D gridded volume to a vista.StructuredGrid (or a vista.RectilinearGrid when apprropriate) object contatining the 2D surface.

Parameters:volgridgeom (omf.volume.VolumeGridGeometry) – the grid geometry to convert

Volume to VTK

omfvista.volume.volume_to_vtk(volelement)[source]

Convert the volume element to a VTK data object.

Parameters:volelement (omf.volume.VolumeElement) – The volume element to convert