| from openscad import *
|
|
|
| tile=polyhedron([[0,0,0],[10,0,0],[10,0,10],[0,0,10],[5,-6,5]],
|
| [[0,1,4],[1,2,4],[2,3,4],[3,0,4]],
|
| colors=[[0.7,0.6,0.5],[0.6,0.7,0.5],[0.7,0.6,0.5],[0.6,0.7,0.5]])
|
|
|
| tiles = concat([ tile+ [10*i,0,10*j] for i in range(6) for j in range(2) ])
|
| flower = tiles.wrap(10.0).repair("gray")
|
| flower.show()
|
| cylinder(r1=10,r2=0,h=4).up(20).color("orange").show()
|
| circle(2,fn=20).path_extrude([[0,0,0],[0,0,-20,23],[0,10,-30]]).color("green").show()
|