cleaned up the method (removed print statements) i'm ready to now add this method as an option to the mesh object
This commit is contained in:
+10
-4
@@ -4,6 +4,7 @@ import sys
|
||||
import pickle
|
||||
|
||||
from grid import simple_rect_grid, simple_random_grid
|
||||
from baker import run_baker
|
||||
|
||||
qfile = '/tmp/grid_regular.txt'
|
||||
|
||||
@@ -15,8 +16,13 @@ if __name__ == '__main__':
|
||||
except:
|
||||
resolution = 3
|
||||
|
||||
g = simple_rect_grid(resolution, resolution)
|
||||
print g
|
||||
source_mesh = simple_rect_grid(resolution, resolution)
|
||||
X = [0.4, 0.001]
|
||||
print g.get_points_conn(X)
|
||||
open(qfile, 'w').write(g.for_qhull())
|
||||
(R, S) = source_mesh.get_points_conn(X)
|
||||
|
||||
print source_mesh
|
||||
print R
|
||||
print S
|
||||
|
||||
print run_baker(X, R, S)
|
||||
open(qfile, 'w').write(source_mesh.for_qhull())
|
||||
|
||||
Reference in New Issue
Block a user