| # desired_syntax
|
| def MyShape(a, b):
|
| with Difference():
|
| for i in range(a):
|
| j = i - (a/2)
|
| with Translate(j):
|
| Cube(b)
|
| Children()
|
|
|
| with Color("red"):
|
| with MyShape(10, 2):
|
| with Translate([1,2,3]):
|
| Sphere(5)
|