forked from paul1522/OpenSCAD-Projects
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSun Visor Device Mount 3.scad
52 lines (38 loc) · 1.27 KB
/
Sun Visor Device Mount 3.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
50
51
52
/// 76.2 x 11.1 Moto X Pure
/// 78.4 x 12.1 Moto X Pure with Cover
/// 155 x 9 Nexus 9
// Device Width
device_width = 155+1.0; // [1:200]
// Device Thickness
device_thickness = 9+0.5; // [1:50]
// Device Corner Radius
device_corner_radius = 3; // [0:10]
// Visor Thickness
visor_thickness = 30; // [1:50]
// Visor Height
visor_height = 190; // [1:300]
// Visor Corner Radius
visor_corner_radius = 14; // [0:10]
// Thickness
thickness = 5; // [1:10]
//$fn = 16;
include <lib_soft.scad>
// Visor
difference() {
softz_cube([visor_height+2*thickness, visor_thickness+2*thickness, thickness], cr=visor_corner_radius+thickness);
translate([thickness, thickness, 0]) {
softz_cube([visor_height, visor_thickness, thickness], cr=visor_corner_radius);
}
}
// Device
translate([0, thickness+visor_thickness, 0]) {
difference() {
softz_cube([device_width+2*thickness, device_thickness+2*thickness, thickness], cr=device_corner_radius+thickness);
translate([thickness, thickness, 0]) {
softz_cube([device_width, device_thickness, thickness], cr=device_corner_radius);
}
translate([thickness+device_corner_radius, thickness, 0]) {
cube([device_width-2*device_corner_radius, device_thickness+thickness, thickness]);
}
}
}