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
writeUBC(mesh, fileName[, models]) 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.writeUBC(mesh, fileName, models=None)[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