Add README

This commit is contained in:
Carson Katri 2022-11-13 15:23:11 -05:00
commit ec6ad9bdfb
5 changed files with 98 additions and 6 deletions

View file

@ -1,5 +1,9 @@
from geometry_script import *
@tree
def simple(size: Vector):
return cube(size=size)
@tree("Repeat Grid")
def repeat_grid(geometry: Geometry, width: Int, height: Int):
g = grid(
size_x=width, size_y=height,
vertices_x=width, vertices_y=height
).mesh_to_points()
return g.instance_on_points(instance=geometry)