smbinterp/bin/plot.py

12 lines
310 B
Python
Raw Normal View History

import bpy
import pickle
points = pickle.load(open('/tmp/points.p', 'r'))
faces = pickle.load(open('/tmp/faces.p', 'r'))
2010-10-22 08:20:59 -07:00
# faces = [faces[i] for i in faces]
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')