discretize.MeshIO.TreeMeshIO

class discretize.MeshIO.TreeMeshIO[source]

Bases: object

Methods

readModelUBC(mesh, fileName) Read UBC OcTree model and get vector :param string fileName: path to the UBC GIF model file to read :rtype: numpy.ndarray :return: OcTree model
readUBC(meshFile) 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
writeModelUBC(mesh, fileName, model[, directory]) Writes a model associated with a TreeMesh to a UBC-GIF format model file.
writeUBC(mesh, fileName[, models, directory]) Write UBC ocTree mesh and model files from a octree mesh and model.

Attributes

Methods

TreeMeshIO.readModelUBC(mesh, fileName)[source]

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

classmethod TreeMeshIO.readUBC(meshFile)[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.writeModelUBC(mesh, fileName, model, directory='')[source]

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

Input: :param str fileName: 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

TreeMeshIO.writeUBC(mesh, fileName, models=None, directory='')[source]

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