Function mesh_to_vtk
pub fn mesh_to_vtk(mesh: &Mesh) -> Vtk
Expand description
Convert a mesh tally to vtk using default options
Suitable for very quick conversions, but for control over conversion options use MeshToVtk and the MeshToVtkBuilder to change the configuration.
// Get a mesh
let mesh = read_target("path/to/file.msht", 104).unwrap();
// Convert to VTK with the default configuration
let vtk = mesh_to_vtk(&mesh);
// Wite the VTK to a file in one of several formats
write_vtk(vtk, "output.vtk", VtkFormat::Xml).unwrap();