thegooglecodearchive / sfepy

Automatically exported from code.google.com/p/sfepy
0 stars 0 forks source link

mesh3d reader #74

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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?

Original issue reported on code.google.com by ondrej.c...@gmail.com on 20 Jan 2009 at 9:23

Attachments:

GoogleCodeExporter commented 9 years ago
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.

Original comment by robert.c...@gmail.com on 21 Jan 2009 at 1:27

GoogleCodeExporter commented 9 years ago
Works fine for me, thanks for merging it.

Original comment by ondrej.c...@gmail.com on 20 Feb 2009 at 10:20

GoogleCodeExporter commented 9 years ago
Migrated to http://github.com/sfepy/sfepy/issues/78

Original comment by robert.c...@gmail.com on 30 Jan 2012 at 10:25