2011-03-23 10:47:30 -07:00
|
|
|
from interp import config
|
|
|
|
import sys
|
|
|
|
sys.path.append(config['pypath'])
|
|
|
|
|
2010-03-18 22:32:24 -07:00
|
|
|
from Blender import *
|
|
|
|
import bpy
|
|
|
|
|
2011-03-23 10:47:30 -07:00
|
|
|
from interp.grid.DDD import rect_grid
|
2010-03-18 22:32:24 -07:00
|
|
|
|
2010-03-20 16:10:02 -07:00
|
|
|
g = rect_grid(10, 10, 20)
|
2010-03-18 22:32:24 -07:00
|
|
|
|
|
|
|
me = bpy.data.meshes.new('points')
|
2011-03-23 10:47:30 -07:00
|
|
|
me.verts.extend(g.verts)
|
2010-03-18 22:32:24 -07:00
|
|
|
# me.faces.extend([i.verts for i in p.faces.itervalues()])
|
|
|
|
scn = bpy.data.scenes.active
|
|
|
|
ob = scn.objects.new(me, 'points_obj')
|