sfepy/sfepy — Issue #78: mesh3d reader
Author: rc
Created: 2012-01-30 10:25:35+00:00
State: open

I implemented a new reader for the mesh3d format, please pull my patches
from the master-ondrej branch here:

http://github.com/certik/sfepy/tree/master-ondrej

Attached find 2 example files, that it is able to read. Use it like:

from sfepy.fem.mesh import Mesh
m = Mesh.from_file("tetra8.mesh3d")
m.write("mesh.vtk", io="auto")

If you agree with the patches, please pull them and push them in.

However, I didn't write any tests for the new mesh. Robert, how should we
test this?

Migrated from http://code.google.com/p/sfepy/issues/detail?id=74

earlier comments

robert.cimrman said, at 2009-01-21T13:27:41.000Z:

I have integrated the patches + tests. Try it please.

Note that I renamed 'np' to 'nm' to match the rest of sfepy - look into
sfepy/base/base.py to see what the standard import names are. The numpy community
agreed upon 'np' rather recently, and it is more important for me now to have a
common name in all the code, as it also facilitates a potential switch.

ondrej.certik said, at 2009-02-20T10:20:47.000Z:

Works fine for me, thanks for merging it.