smbinterp/tools/blender/plot_cloud.py

13 lines
299 B
Python
Raw Normal View History

from Blender import *
import bpy
from grid.test3d import simple_rect_grid
g = simple_rect_grid(10, 10, 20)
me = bpy.data.meshes.new('points')
me.verts.extend(g.points)
# me.faces.extend([i.verts for i in p.faces.itervalues()])
scn = bpy.data.scenes.active
ob = scn.objects.new(me, 'points_obj')