fixed 2D gmsh blender dump
This commit is contained in:
parent
3cc0901a54
commit
aaaf5c7fbb
@ -101,7 +101,7 @@ class gmsh_grid(grid):
|
||||
self.cells[v[1]].add_neighbor(self.cells[v[0]])
|
||||
|
||||
def dump_to_blender_files(self, pfile = '/tmp/points.p', ffile = '/tmp/cells.p'):
|
||||
pickle.dump([(p[0], p[1], p[2]) for p in self.verts], open(pfile, 'w'))
|
||||
pickle.dump([(p[0], p[1], 0.0) for p in self.verts], open(pfile, 'w'))
|
||||
pickle.dump([f.verts for f in self.cells.itervalues()], open(ffile, 'w'))
|
||||
|
||||
class gmsh_grid3D(grid):
|
||||
|
Loading…
Reference in New Issue
Block a user