2011-03-25 13:21:25 -07:00
|
|
|
from interp import config
|
|
|
|
import sys
|
|
|
|
sys.path.append(config['pypath'])
|
|
|
|
|
2010-10-06 11:15:09 -07:00
|
|
|
import bpy
|
|
|
|
|
|
|
|
import pickle
|
|
|
|
points = pickle.load(open('/tmp/points.p', 'r'))
|
2011-03-25 13:21:25 -07:00
|
|
|
faces = pickle.load(open('/tmp/cells.p', 'r'))
|
2010-10-22 08:20:59 -07:00
|
|
|
# faces = [faces[i] for i in faces]
|
2010-10-06 11:15:09 -07:00
|
|
|
me = bpy.data.meshes.new('points')
|
|
|
|
me.verts.extend(points)
|
|
|
|
me.faces.extend(faces)
|
|
|
|
scn = bpy.data.scenes.active
|
|
|
|
ob = scn.objects.new(me, 'points_obj')
|