Browse Source

case: add last-minute screen front rebuild (openSCAD); add trackball spacer (openSCAD)

Lukas F. Hartmann 7 months ago
parent
commit
f9cce8feec
3 changed files with 3438 additions and 0 deletions
  1. 70
    0
      case-parts/screen-front-v4b.scad
  2. 6
    0
      case-parts/trackball-spacer.scad
  3. 3362
    0
      case-parts/trackball-spacer.stl

+ 70
- 0
case-parts/screen-front-v4b.scad View File

@@ -0,0 +1,70 @@
1
+
2
+screws_ay=19.5;
3
+screws_by=196.7;
4
+frame_width=290;
5
+frame_depth=205;
6
+frame_height=4;
7
+screw_head_h=1.5;
8
+border_gap=0;
9
+border_slope=19;
10
+border_thickness=3;
11
+
12
+module screw_hole(x,y) {
13
+  shh=screw_head_h*2;
14
+  translate([x,y,shh+1]) cylinder(h=shh, r=6.4/2, center = true, $fn=40);
15
+  translate([x,y,0]) cylinder(h=frame_height*2, r=3.4/2, center = true, $fn=20);
16
+}
17
+
18
+module border(border_h,length) {
19
+  rotate([90,0,0]) linear_extrude(height = length, center = true, convexity = 10) polygon(points=[[0,0],[border_h,0],[border_h/2,border_h],[0,border_h]]);
20
+
21
+}
22
+
23
+difference() {
24
+  cube([frame_width,frame_depth,frame_height]);
25
+  // hinge cutouts
26
+  translate([29,-0.2,-0.1]) cube([28,8.2,4.2]);
27
+  translate([frame_width-29-28,-0.2,-0.1]) cube([28,8.2,4.2]);
28
+  
29
+  // screen cutouts
30
+  translate([13,36,-0.1]) cube([261,150.5,4.2]);
31
+  translate([3,29,-0.1]) cube([283,163,2.2]);
32
+  
33
+  // screws bottom
34
+  screw_hole(8,19.9);
35
+  screw_hole(144.9,19.9);
36
+  screw_hole(281.9,19.9);
37
+  
38
+  // screws top
39
+  screw_hole(8,screws_by);
40
+  screw_hole(144.9,screws_by);
41
+  screw_hole(281.9,screws_by);
42
+
43
+  // cutout for strap
44
+  translate([139.25,188,-0.1]) cube([11,18,1.1]);
45
+  
46
+  // cutout for magnet
47
+  translate([51,14,1.4]) cylinder(h=4, r=11/2, center = true, $fn=20);
48
+  
49
+  // hinge cutout back
50
+  translate([2, 0.8,-0.1]) cube([28,  16.2,3]);
51
+  translate([14,0.8,-0.1]) cube([16.1,26.2,3]);
52
+  
53
+  translate([frame_width-28-2,   0.8,-0.1]) cube([28,  16.2,3]);
54
+  translate([frame_width-16.1-14,0.8,-0.1]) cube([16.1,26.2,3]);
55
+}
56
+
57
+// border
58
+difference() {
59
+  translate([0,frame_depth/2+border_gap/2,frame_height]) border(border_thickness,frame_depth-border_gap);
60
+
61
+  translate([0,border_gap+border_slope-0.1,4+border_thickness+0.1]) rotate([270,0,270]) linear_extrude(height=10,center=true,convexity=10) polygon(points=[[0,0],[border_slope,0],[border_slope,border_thickness]]);
62
+}
63
+difference() {
64
+  translate([frame_width,frame_depth/2+border_gap/2,frame_height]) rotate([0,0,180]) border(border_thickness,frame_depth-border_gap);
65
+  
66
+  translate([frame_width-2.5,border_gap+border_slope-0.1,4+border_thickness+0.1]) rotate([270,0,270]) linear_extrude(height=10,center=true,convexity=10) polygon(points=[[0,0],[border_slope,0],[border_slope,border_thickness]]);
67
+}
68
+
69
+
70
+translate([frame_width/2,frame_depth,frame_height]) rotate([0,0,270]) border(border_thickness,frame_width);

+ 6
- 0
case-parts/trackball-spacer.scad View File

@@ -0,0 +1,6 @@
1
+
2
+difference() {
3
+  cylinder(4.9, 6/2, 6/2, true, $fn=60);
4
+  cylinder(6, 2.5/2, 2.5/2, true, $fn=60);
5
+}
6
+

+ 3362
- 0
case-parts/trackball-spacer.stl
File diff suppressed because it is too large
View File


Loading…
Cancel
Save