summaryrefslogtreecommitdiff
path: root/examples/example021.scad
blob: f5dfb785bf403886e0ecce3087101abfea5b8abb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32

module thing()
{
	$fa = 30;
	difference() {
		sphere(r = 25);
		cylinder(h = 62.5, r1 = 12.5, r2 = 6.25, center = true);
		rotate(90, [ 1, 0, 0 ]) cylinder(h = 62.5,
				r1 = 12.5, r2 = 6.25, center = true);
		rotate(90, [ 0, 1, 0 ]) cylinder(h = 62.5,
				r1 = 12.5, r2 = 6.25, center = true);
	}
}

module demo_proj()
{
	linear_extrude(center = true, height = 0.5) projection(cut = false) thing();
	% thing();
}

module demo_cut()
{
	for (i=[-20:5:+20]) {
		 rotate(-30, [ 1, 1, 0 ]) translate([ 0, 0, -i ])
			linear_extrude(center = true, height = 0.5) projection(cut = true)
				translate([ 0, 0, i ]) rotate(+30, [ 1, 1, 0 ]) thing();
	}
	% thing();
}

translate([ -30, 0, 0 ]) demo_proj();
translate([ +30, 0, 0 ]) demo_cut();
contact: Jan Huwald // Impressum