mostly fixed a bug in my qdelaunay parsing. implemented a blender viewer ... mostly

the qdelaunay app doesn't alway display all faces for a point. lame. I worked around it by creating the point-> face relationships manually.

There is a max recursion something happeneing when I try to save so pickle. look into this.

I spent some time writing a visualizer for blender. 10 lines of code. simple stuff.

next steps would be to move the KDTree into the mesh object. GOOD LUCK (me)!!

--HG--
rename : bin/grid_driver.py => bin/grid_random.py
rename : bin/grid_driver.py => bin/grid_regular.py
This commit is contained in:
Stephen Mardson McQuay
2010-02-14 20:56:41 -07:00
parent 9ff48f4c12
commit 2cf9a0b574
6 changed files with 87 additions and 26 deletions
+11
View File
@@ -0,0 +1,11 @@
import pickle
from Blender import *
import bpy
p = pickle.load(open('/tmp/grid_driver.p', 'r'))
me = bpy.data.meshes.new('points')
me.verts.extend([[v[0], v[1], 0] for v in p.points])
me.faces.extend([i.verts for i in p.faces.itervalues()])
scn = bpy.data.scenes.active
ob = scn.objects.new(me, 'points_obj')