Skip to content

Commit 9ba2dc6

Browse files
committed
printability improvements
1 parent 9ffd065 commit 9ba2dc6

1 file changed

Lines changed: 19 additions & 13 deletions

File tree

src/LiteCase/buttonmount_cherry.scad

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
$fn = $preview ? 20 : 60;
22
z = [0, 0, 1];
33
y = [0, 1, 0];
4-
x = [1,0,0];
4+
x = [1, 0, 0];
55
cz = 1.2;
66
h = 15;
77
cxy = 13.7;
@@ -22,7 +22,7 @@ module hole() {
2222

2323
module handlebar()
2424
{
25-
# translate((50) / 2 * y - 18.5 * z)rotate([90, 0, 0])cylinder(d = 25.4, h = 50);
25+
# translate((50) / 2 * y - 18.5 * z)rotate([90, 0, 0])cylinder(d = 25.4, h = 50);
2626
}
2727

2828
module cable() {
@@ -35,32 +35,38 @@ module cable() {
3535
difference() {
3636
union() {
3737
translate(z4 * z)cube(sizef, center = true);
38-
translate(-4*z)cube([5, cxy+16, 8],center=true);
38+
translate(-4 * z)cube([7, cxy + 16, 8], center = true);
3939
}
40+
4041
hole();
41-
#for (i=[-1,1]) translate((cxy + 8) / 2 * y*i) rubber_ring();
42+
#for (i = [-1, 1]) translate((cxy + 8) / 2 * y * i) rubber_ring();
4243
handlebar();
4344
cable();
4445
}
46+
difference() {
47+
translate(-0.1 * z)cube([7, cxy + 16, 0.2], center = true);
48+
hole();
49+
}
50+
4551

4652
module rubber_ring() {
4753
translate(-18.5 * z)
4854
rotate([90, 0, 0])
4955
rotate_extrude()
5056
translate([25.4 / 2 + 1.5 + 1, 0, 0])
51-
{
52-
hull() {
53-
circle(d = 3);
54-
translate([5, 0, 0])circle(d = 3);}
55-
}
57+
{
58+
hull() {
59+
circle(d = 3);
60+
translate([5, 0, 0])circle(d = 3);}
61+
}
5662
}
5763

5864

59-
module bottom_shape(diam=5) {
65+
module bottom_shape(diam = 5) {
6066
difference() {
6167
translate([0, 0, -7.5])cube([15, 15, 15], center = true);
6268
translate(2 * z)handlebar();
63-
for (i = [-1, 1])rotate([0, 25 * i, 0])translate([i * (diam+1.5), 0, 0])rotate_extrude() hull() {
69+
for (i = [-1, 1])rotate([0, 20 * i, 0])translate([i * (diam + 1.5), 0, 0])rotate_extrude() hull() {
6470
translate([4, 0, 0]) circle(d = 3);
6571
translate([4, 4, 0]) circle(d = 3);
6672
}
@@ -70,7 +76,7 @@ module bottom_shape(diam=5) {
7076
}
7177

7278
//rotate(-x*90)linear_extrude(cxy-5*3)
73-
module bottom(width=cxy, diam=5) {
79+
module bottom(width = cxy, diam = 5) {
7480
rotate(-x * 90)linear_extrude(cxy - diam) projection(cut = true) {
7581
rotate(x * 90)bottom_shape(diam);
7682
}
@@ -84,4 +90,4 @@ module bottom(width=cxy, diam=5) {
8490
}
8591
}
8692

87-
translate(y*40) bottom();
93+
translate(y * 25) bottom();

0 commit comments

Comments
 (0)