Mon, 03 Apr 2017 04:19:45 +0200
pylint
1 | 1 | /* |
2 | OpenSCAD Template for visualizing cylindertransport.py | |
3 | */ | |
4 | module tank(x, r, h) { | |
5 | cap = r; | |
2 | 6 | color("SteelBlue") render() rotate([90,0,0]) { |
1 | 7 | translate([x, r, cap]) { |
8 | sphere(r = r); // bottom | |
9 | cylinder(h = h-2*cap, r = r); | |
10 | } | |
11 | translate([x, r, h-cap]) { | |
12 | sphere(r = r); // top | |
13 | cylinder(h = 30+cap, r = 25); | |
14 | } | |
2 | 15 | } |
1 | 16 | } |
17 | ||
18 | module spacer(x, r, rcylinder, h) { | |
19 | cap = rcylinder; | |
20 | ||
2 | 21 | color("DarkGrey") render() rotate([90,0,0]) |
1 | 22 | translate([x, r, cap]) { |
23 | difference() { | |
24 | cylinder(h = h-2*cap, r = r); | |
25 | cylinder(h = h-2*cap, r = r-5); | |
26 | } | |
27 | } | |
28 | } | |
29 | $fn = 20; |