13 lines
285 B
Python
13 lines
285 B
Python
from Blender import *
|
|
import bpy
|
|
|
|
from grid.test3d 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')
|