-
Notifications
You must be signed in to change notification settings - Fork 0
/
corner.scad
20 lines (17 loc) · 849 Bytes
/
corner.scad
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
use <brick.scad>
include <globals.scad>
module corner(length=2, height=1/3, type="brick"){
translate([stud_spacing/2,0,0])
difference(){
block(width=length, length=1, height=height, type=type);
translate([-stud_spacing+wall_thickness+wall_play, stud_spacing/2-wall_thickness-wall_play-0.3, 0])
cube([stud_spacing-2*wall_thickness-wall_play ,wall_thickness+0.3, brick_height*height-roof_thickness]);
}
translate([0,stud_spacing/2,0])
rotate([0,0,90])
difference(){
block(width=length, length=1, height=height, type=type);
translate([-stud_spacing+wall_thickness+wall_play, -stud_spacing/2+wall_play-0.05, 0])
cube([stud_spacing-2*wall_thickness-wall_play ,wall_thickness+0.3, brick_height*height-roof_thickness]);
}
}