moved the blender funcs into the main grid object
This commit is contained in:
@@ -99,9 +99,6 @@ class gmsh_grid(grid):
|
||||
self.cells[v[0]].add_neighbor(self.cells[v[1]])
|
||||
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], 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):
|
||||
|
||||
@@ -174,7 +171,3 @@ class gmsh_grid3D(grid):
|
||||
if len(v) > 1:
|
||||
self.cells[v[0]].add_neighbor(self.cells[v[1]])
|
||||
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([f.verts for f in self.cells.itervalues()], open(ffile, 'w'))
|
||||
|
||||
Reference in New Issue
Block a user