Skip to content

Mesh IO #22

Open
Open
@rowanc1

Description

@rowanc1

From @rowanc1 on January 28, 2016 22:16

I would propose the file structure be replaced:

#----- replace ------
Utils.readUBCTensorMesh('myMesh.msh')
#----- with ------
M = SimPEG.Mesh.TensorMesh.readUBC('myMesh.msh')
v  = M.readModelUBC('model.dat')

This works well with the various types of meshes as well.

M.writeUBC('myNewMesh.msh')
M.writeModelUBC('myModel.dat', v)

I think that would clean up the syntax a bit, and allow these IO formats to live in the correct mesh file, but be used the same.

Similar:
writeVTK

Copied from original issue: simpeg/simpeg#212

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions