-
Notifications
You must be signed in to change notification settings - Fork 0
/
model.scad
46 lines (35 loc) · 1.17 KB
/
model.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
$fn=100;
grid_path = "grid_fin_-_big-90x126mm-std.stl";
holder_outer_diameter=107;
holder_lenght=10;
cylinder_outer_diameter=105;
cylinder_inner_diameter=95;
cylinder_lenght=90;
cube_remove_back_size = max(cylinder_lenght, cylinder_outer_diameter, holder_outer_diameter);
difference(){
difference(){
cylinder(h=cylinder_lenght, d=cylinder_outer_diameter, center=true);
translate([45,0,0])
cube(cube_remove_back_size, center=true);
};
cylinder(h=cylinder_lenght, d=cylinder_inner_diameter, center=true);
}
module holder(position){
difference(){
difference(){
translate([0,0,position])
cylinder(h=holder_lenght, d=holder_outer_diameter, center=true);
translate([45,0,0])
cube(cube_remove_back_size, center=true);
};
cylinder(h=cylinder_lenght, d=cylinder_inner_diameter, center=true);
}
}
holder((cylinder_lenght/2)-(holder_lenght/2));
holder(-(cylinder_lenght/2)+(holder_lenght/2));
difference(){
translate([-150,0,15])
rotate([90,0,90])
import(grid_path);
cylinder(h=cylinder_lenght, d=cylinder_inner_diameter, center=true);
}