discretize.mixins.TreeMeshIO.write_UBC

TreeMeshIO.write_UBC(file_name, models=None, directory='')[source]

Write OcTree mesh (and models) to UBC-GIF formatted files.

Parameters
file_namestr

full path for the output mesh file or just its name if directory is specified

modelsdict of [str, (n_cells) numpy.ndarray], optional

The dictionary key is a string representing the model’s name. Each model is a 1D numpy array of size (n_cells).

directorystr, optional

output directory (optional)