discretize.base.mesh_io.TreeMeshIO

class discretize.base.mesh_io.TreeMeshIO[source]

Bases: object

Methods

readModelUBC(*args, **kwargs)

readModelUBC has been deprecated.

readUBC(file_name[, directory])

read_UBC(meshFile[, directory])

Read UBC 3D OcTree mesh file Input: :param str meshFile: path to the UBC GIF OcTree mesh file to read :rtype: discretize.TreeMesh :return: The octree mesh

read_model_UBC(file_name)

Read UBC OcTree model and get vector :param string file_name: path to the UBC GIF model file to read :rtype: numpy.ndarray :return: OcTree model

writeModelUBC(*args, **kwargs)

writeModelUBC has been deprecated.

writeUBC(*args, **kwargs)

writeUBC has been deprecated.

write_UBC(file_name[, models, directory])

Write UBC ocTree mesh and model files from a octree mesh and model.

write_model_UBC(file_name, model[, directory])

Writes a model associated with a TreeMesh to a UBC-GIF format model file.

Attributes

Methods

TreeMeshIO.readModelUBC(*args, **kwargs)

readModelUBC has been deprecated. See read_model_UBC for documentation

classmethod TreeMeshIO.readUBC(file_name, directory='')[source]
classmethod TreeMeshIO.read_UBC(meshFile, directory='')[source]

Read UBC 3D OcTree mesh file Input: :param str meshFile: path to the UBC GIF OcTree mesh file to read :rtype: discretize.TreeMesh :return: The octree mesh

TreeMeshIO.read_model_UBC(file_name)[source]

Read UBC OcTree model and get vector :param string file_name: path to the UBC GIF model file to read :rtype: numpy.ndarray :return: OcTree model

TreeMeshIO.writeModelUBC(*args, **kwargs)

writeModelUBC has been deprecated. See write_model_UBC for documentation

TreeMeshIO.writeUBC(*args, **kwargs)

writeUBC has been deprecated. See write_UBC for documentation

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

Write UBC ocTree mesh and model files from a octree mesh and model. :param string file_name: File to write to :param dict models: Models in a dict, where each key is the file_name :param str directory: directory where to save model(s)

TreeMeshIO.write_model_UBC(file_name, model, directory='')[source]

Writes a model associated with a TreeMesh to a UBC-GIF format model file.

Input: :param str file_name: File to write to or just its name if directory is specified :param str directory: directory where the UBC GIF file lives :param numpy.ndarray model: The model