2011-03-28 10:48:17 -07:00
|
|
|
from interp import config
|
|
|
|
import sys
|
|
|
|
sys.path.append(config['pypath'])
|
2010-02-14 19:56:41 -08:00
|
|
|
|
|
|
|
import bpy
|
|
|
|
|
2011-03-28 10:48:17 -07:00
|
|
|
import pickle
|
|
|
|
points = pickle.load(open('/tmp/points.p', 'r'))
|
|
|
|
faces = pickle.load(open('/tmp/cells.p', 'r'))
|
|
|
|
# faces = [faces[i] for i in faces]
|
2010-02-14 19:56:41 -08:00
|
|
|
me = bpy.data.meshes.new('points')
|
2011-03-28 10:48:17 -07:00
|
|
|
me.verts.extend(points)
|
|
|
|
me.faces.extend(faces)
|
2010-02-14 19:56:41 -08:00
|
|
|
scn = bpy.data.scenes.active
|
|
|
|
ob = scn.objects.new(me, 'points_obj')
|