wrote the method that returns grid objects based on connectivity

I'm going to hurry and clean up this method, but for now it is verbose, and uses sets. i'm going to just check it in for future reference
This commit is contained in:
Stephen Mardson McQuay
2010-02-21 20:42:32 -07:00
parent 0ef6897aee
commit a3d72ed200
3 changed files with 66 additions and 43 deletions
+2 -1
View File
@@ -17,5 +17,6 @@ if __name__ == '__main__':
g = simple_rect_grid(resolution, resolution)
print g
print g.get_points_conn([0.4, 0])
X = [0.4, 0.001]
print g.get_points_conn(X)
open(qfile, 'w').write(g.for_qhull())