-
Notifications
You must be signed in to change notification settings - Fork 0
/
bodywash-holder.scad
64 lines (54 loc) · 1.14 KB
/
bodywash-holder.scad
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
// Copyright (C) 2020, Vishal Verma
// SPDX-License-Identifier: GPL-2.0-only
// https://www.thingiverse.com/thing:3936312
$fn = 200;
ht = 70;
wall = 5;
id = 81;
od = id + (2 * wall);
module hole(x, y)
{
translate([x, y, -1])
cylinder(r = 5, h = wall + 2);
}
difference() {
union() {
cylinder(d = od, h = ht);
rotate([0, -4, 0]) translate([-od/2, -(od - 30)/2, 7]) {
minkowski() {
cube ([4 * wall, od - 30, ht + 50]);
rotate([0, 90, 0])
cylinder(r=5, h=1);
}
}
}
translate([0, 0, wall])
cylinder(d = id, h = ht + 50 + wall + 1);
// bottom holes
hole(0, 0);
hole(0, 17);
hole(0, 35);
hole(0, -17);
hole(0, -35);
hole(17, 0);
hole(35, 0);
hole(-17, 0);
hole(-35, 0);
hole(20, 20);
hole(20, -20);
hole(-20, 20);
hole(-20, -20);
// hanging holes
translate([-od/2 - 10, 0, ht + 40])
rotate([0, 90, 0])
cylinder(r = 3, h = 2 * wall + 20);
translate([-od/2 - 10, 20, ht + 40])
rotate([0, 90, 0])
cylinder(r = 3, h = 2 * wall + 20);
translate([-od/2 - 10, -20, ht + 40])
rotate([0, 90, 0])
cylinder(r = 3, h = 2 * wall + 20);
// flatten base
translate([-50, -50, -10])
cube([100, 100, 10]);
}