smbinterp/bin/grid_driver.py

17 lines
330 B
Python
Executable File

#!/usr/bin/python
import sys
from grid import simple_rect_grid
from smcqdelaunay import get_qdelaunay_dump_str
if __name__ == '__main__':
try:
resolution = int(sys.argv[1])
except:
resolution = 3
g = simple_rect_grid(resolution, resolution)
s = get_qdelaunay_dump_str(g)
g.construct_connectivity(s)
print g