Initial commit

This commit is contained in:
Carson Katri 2022-11-12 18:35:01 -05:00
commit 7740a44499
5 changed files with 3575 additions and 0 deletions

11
examples/repeat.py Normal file
View file

@ -0,0 +1,11 @@
from geometry_script import *
@tree
def repeat(size: Vector):
cubes = []
for x in range(5):
for y in range(5):
for z in range(5):
c = cube(size=(0.1, 0.1, 0.1))
cubes.append(c.transform(translation=(x, y, z)))
return join_geometry(geometry=cubes)

5
examples/simple.py Normal file
View file

@ -0,0 +1,5 @@
from geometry_script import *
@tree
def simple(size: Vector):
return cube(size=size)