12 lines
312 B
Python
12 lines
312 B
Python
|
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')
|