changed grid name to dgrid
This commit is contained in:
parent
aaaf5c7fbb
commit
3b4db56b94
@ -32,7 +32,7 @@ def get_index_only(g):
|
||||
def get_index_only_str(g):
|
||||
return "\n".join(get_index_only(g))
|
||||
|
||||
class grid(basegrid):
|
||||
class dgrid(basegrid):
|
||||
cell_re = re.compile(r'''
|
||||
-\s+(?P<cell>f\d+).*?
|
||||
vertices:\s(?P<verts>.*?)\n.*?
|
||||
@ -61,7 +61,7 @@ class grid(basegrid):
|
||||
of.write(qdelaunay_string)
|
||||
|
||||
cell_to_cells = []
|
||||
for matcher in grid.cell_re.finditer(qdelaunay_string):
|
||||
for matcher in dgrid.cell_re.finditer(qdelaunay_string):
|
||||
d = matcher.groupdict()
|
||||
|
||||
cell_name = d['cell']
|
||||
@ -71,7 +71,7 @@ class grid(basegrid):
|
||||
cur_cell = cell(cell_name)
|
||||
self.cells[cell_name] = cur_cell
|
||||
|
||||
for v in grid.vert_re.findall(verticies):
|
||||
for v in dgrid.vert_re.findall(verticies):
|
||||
vertex_index = int(v[1:])
|
||||
cur_cell.add_vert(vertex_index)
|
||||
self.cells_for_vert[vertex_index].append(cur_cell)
|
||||
|
Loading…
Reference in New Issue
Block a user