Initial commit
This commit is contained in:
commit
7740a44499
5 changed files with 3575 additions and 0 deletions
11
examples/repeat.py
Normal file
11
examples/repeat.py
Normal 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
5
examples/simple.py
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
from geometry_script import *
|
||||
|
||||
@tree
|
||||
def simple(size: Vector):
|
||||
return cube(size=size)
|
||||
Reference in a new issue