13 lines
282 B
Python
13 lines
282 B
Python
from Blender import *
|
|
import bpy
|
|
|
|
from grid.DDD import rect_grid
|
|
|
|
g = 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')
|