Skip to content

Commit 7492a47

Browse files
committed
start switching direction of hooks.
1 parent 1c95e63 commit 7492a47

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

src/LiteCase/buttonmount_cherry.scad

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ include <../../variables.scad>
22
use <../../lib/utils.scad>
33

44

5-
$fn = $preview ? 20 : 60;
5+
$fn = 60;
66
z = [0, 0, 1];
77
y = [0, 1, 0];
88
x = [1, 0, 0];
@@ -36,22 +36,30 @@ module cable() {
3636
translate([4.5, 0, -12])rotate([90, 0, 0])cylinder(d = 4, h = 20);
3737
}
3838
}
39+
module hookbase() linear_extrude(0.01) hull() {
40+
for(i=[-1,1])translate([0,i*3,0])circle(d=2.5);
41+
}
42+
hull(){
43+
translate(0.5*[cxy+5,0,-17])rotate([0,90,0]) hookbase();
44+
45+
translate(0.5*[cxy+10,0,-17])rotate([0,45,0]) scale([sqrt(2),1,1])hookbase();
3946

47+
}
4048
module button(detail = true) {
4149
difference() {
4250
union() {
4351
translate(z4 * z)cube(sizef, center = true);
44-
if (detail) translate(-4 * z)cube([7, cxy + 16, 8], center = true);
52+
*if (detail) translate(-4 * z)cube([7, cxy + 16, 8], center = true);
4553
}
4654

4755
if (detail) {
4856
hole();
49-
for (i = [-1, 1]) translate((cxy + 8) / 2 * y * i) rubber_ring();
57+
*for (i = [-1, 1]) translate((cxy + 8) / 2 * y * i) rubber_ring();
5058
handlebar();
5159
cable();
5260
}
5361
}
54-
if (detail)difference() {
62+
*if (detail)difference() {
5563
translate(-0.1 * z)cube([7, cxy + 16, 0.2], center = true);
5664
hole();
5765
}
@@ -128,7 +136,7 @@ module buttontop(wall = 3) {
128136

129137
}
130138
translate(-z)buttoncutter();
131-
#for (i = [-1, 1]) translate((cxy + 8) / 2 * y * i+z*-6) rubber_ring(true);
139+
*for (i = [-1, 1]) translate((cxy + 8) / 2 * y * i+z*-6) rubber_ring(true);
132140
}
133141
}
134142

0 commit comments

Comments
 (0)