1 2module example005() 3{ 4 translate([0, 0, -120]) { 5 difference() { 6 cylinder(h = 50, r = 100); 7 translate([0, 0, 10]) cylinder(h = 50, r = 80); 8 translate([100, 0, 35]) cube(50, center = true); 9 } 10 for (i = [0:5]) { 11 echo(360*i/6, sin(360*i/6)*80, cos(360*i/6)*80); 12 translate([sin(360*i/6)*80, cos(360*i/6)*80, 0 ]) 13 cylinder(h = 200, r=10); 14 } 15 translate([0, 0, 200]) 16 cylinder(h = 80, r1 = 120, r2 = 0); 17 } 18} 19 20echo(version=version()); 21 22example005(); 23 24// Written by Clifford Wolf <clifford@clifford.at> and Marius 25// Kintel <marius@kintel.net> 26// 27// To the extent possible under law, the author(s) have dedicated all 28// copyright and related and neighboring rights to this software to the 29// public domain worldwide. This software is distributed without any 30// warranty. 31// 32// You should have received a copy of the CC0 Public Domain 33// Dedication along with this software. 34// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>. 35