-
Notifications
You must be signed in to change notification settings - Fork 1
/
allen-fridge-part.scad
49 lines (43 loc) · 1.14 KB
/
allen-fridge-part.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
// Al's Fridge part.
// fixing a handle
// Measurements derived from a sample part in hand
$fn = 30;
// all measurements in mm
part_width = 21.5;
part_length = 36.6;
part_height = 5;
interior_length = 33.3;
hole = 4;
part_thickness = 2;
module trappyzoid(){
linear_extrude(height=6){
polygon (points=
[
[-2,0],
[0,-10],
[part_width,-10],
[part_width+2,0],
],convexity=10);
}
}
difference(){
union(){
difference(){
trappyzoid();
scale([0.85,0.80,1])translate([1.8,-1.5,1.5])trappyzoid();
}
//base
cube([part_width,part_length,part_thickness]);
// walls
cube([part_thickness,part_length,part_height]);
cube([part_width,part_thickness,part_height]);
translate([part_width/4,-10+part_thickness/2-0.25,0])cube([11,1,6]);
translate([part_width-part_thickness,0,0])cube([part_thickness,part_length,part_height]);
translate([0,part_length-part_thickness,0])cube([part_width,part_thickness,part_height]);
translate([part_width/2,6,part_thickness])cylinder(h=3,r=12/2);
}
union(){
translate([part_width/2,6,-10])cylinder(h=25,r=4/2);
translate([part_width/2,6,-0.01])cylinder(h=2.1,r=8/2);
}
}