smbinterp/tools/blender/plot_cloud.py

17 lines
360 B
Python
Raw Normal View History

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