Skip to content

Commit f5dae7d

Browse files
author
Gisle Sælensminde
committed
Made lamellas and made a stub for the backside mounts.
1 parent 15b932d commit f5dae7d

6 files changed

+44
-20
lines changed

backpanel.scad

-18
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,6 @@
11

22
include <panels.scad>
33

4-
module mountpoint(outer, inner, floor, pheight1, pheight2){
5-
difference(){
6-
difference(){
7-
cylinder(d=outer, h=pheight1);
8-
translate([0, 0, floor]) cylinder(d=inner, h=pheight1);
9-
}
10-
translate([0, inner/2, outer/2 + pheight2]) cube([inner, inner, outer], center=true);
11-
}
12-
}
13-
14-
15-
module mount(outer, inner, floor, pheight1, pheight2, distance){
16-
union(){
17-
mountpoint(outer, inner, floor, pheight1, pheight2);
18-
translate([0,distance,0]) rotate([0,0,180]) mountpoint(outer, inner, floor, pheight1, pheight2);
19-
}
20-
}
21-
224

235
module back(){
246
union(){

constants.scad

+1
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@ grovedepth = 2;
1515
mfold = 5;
1616
fit = 0.1;
1717
grove_width = thickness2 + fit;
18+
lamella_length = 10;
1819

1920
$fn = 100;

lamellas.scad

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
2+
include <constants.scad>
3+
4+
module lamella(){
5+
difference(){
6+
cube([pwidth, lamella_length, thickness2], center=true);
7+
translate([0,0,thickness2-thickness1])
8+
cube([pwidth-2*thickness1, lamella_length+mfold, thickness2], center=true);
9+
}
10+
}
11+
12+
module lamellas(num_lamellas){
13+
for(i = [0:num_lamellas-1] ) {
14+
translate([0, i*(lamella_length+5), 0])
15+
lamella();
16+
}
17+
}
18+
19+
lamellas(6);
20+
21+

mounts.scad

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
include <panels.scad>
3+
4+
//To contain the mounts on the backside

panels.scad

+15
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,19 @@ module panel(){
1818
}
1919
}
2020

21+
module mountpoint(outer, inner, floor, pheight1, pheight2){
22+
difference(){
23+
difference(){
24+
cylinder(d=outer, h=pheight1);
25+
translate([0, 0, floor]) cylinder(d=inner, h=pheight1);
26+
}
27+
translate([0, inner/2, outer/2 + pheight2]) cube([inner, inner, outer], center=true);
28+
}
29+
}
2130

31+
module mount(outer, inner, floor, pheight1, pheight2, distance){
32+
union(){
33+
mountpoint(outer, inner, floor, pheight1, pheight2);
34+
translate([0,distance,0]) rotate([0,0,180]) mountpoint(outer, inner, floor, pheight1, pheight2);
35+
}
36+
}

sidepanels.scad

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
1+
,
22
include <constants.scad>
33

44
margin = 1;
@@ -33,7 +33,8 @@ module lamella_grove(xpos, ypos, angle, length, width, ele){
3333

3434
module lamella_groves(startx, ypos, angle, separation, num){
3535
for(i= [0:num-1]){
36-
lamella_grove(startx, ypos + i*separation, angle, 10, grove_width,thickness2-thickness1);
36+
lamella_grove(startx, ypos + i*separation, angle, lamella_length,
37+
grove_width,thickness2-thickness1);
3738
}
3839
}
3940

0 commit comments

Comments
 (0)