13 lines
299 B
Python
13 lines
299 B
Python
|
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')
|