17 plug_stem = [ 2.72 + 0.50,
20 palmrest_from_plug_z = 3.98;
21 laptop_th = 16.31 + 0.75;
28 plug_l_d[0][1]/2 + wall_th * sin(22.5);
30 hook_tongue_h = hook_hole + wall_th*2;
32 plug_l_d_smallest = plug_l_d[len(plug_l_d)-1];
33 plug_hook_x_min = -plug_l_d_smallest[0] - wall_th;
34 plug_hook_z_start = -plug_l_d_smallest[1]/2 - wall_th;
36 z_laptop_base = palmrest_from_plug_z - laptop_th;
37 z_hook_min = z_laptop_base - hook_tongue_h;
39 module PlugMainPlan() {
40 for (l_d = plug_l_d) {
43 rectfromto([ -l, -d/2 ],
48 module PlugHolderPlan() {
54 rectfromto([-100,-100], [-plug_entry_gap,+100]);
58 module PlugHookHookPlan(){
59 polygon([ [ plug_hook_x_min, 0 ],
60 [ plug_hook_x_min, plug_hook_z_start ],
61 [ plug_hook_x_min + (plug_hook_z_start - z_hook_min),
63 [ -plug_entry_gap, z_hook_min ],
64 [ -plug_entry_gap, 0 ],
70 rectfromto([ -plug_entry_gap - 1, z_hook_min ],
71 [ tongue_len, z_laptop_base ]);
72 translate([ tongue_len - wall_th - hook_hole/2,
73 z_hook_min + wall_th + hook_hole/2 ])
74 circle(r = hook_hole/2);
82 module RotateIntersect(n=6){
83 intersection_for (r = [0:n-1]) {
84 rotate([r/n * 360,0,0])
85 linextr(-100,100) children(0);
96 linextr_y_xz(-hook_th_plug_holder/2,
97 +hook_th_plug_holder/2)
100 linextr_y_xz(-hook_th/2,
109 linextr(-plug_stem[1]/2, 100)
110 rectfromto([ -100, -plug_stem[0]/2 ],
111 [ +100, +plug_stem[0]/2 ]);
115 module PlugHolderPrint(){ ////toplevel
116 render() PlugHolder();
119 module DemoPlan() { ////toplevel
120 translate([0,0,-10]) color("grey") PlugHolderPlan();
122 translate([0,0,-5]) color("blue") {
127 translate([0,40,0]) {