X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=poster-tube-lid.scad;h=4ab3636d84a6bf0767cc9e04789594053d164ef8;hb=0738625c2c475ee9c363936c2a893360732b57ed;hp=73eec6200265cf055fd0a7011c44bf80b2ebe00f;hpb=592ab447dcaeb17bccefd78b29419b49ecca84bc;p=reprap-play.git diff --git a/poster-tube-lid.scad b/poster-tube-lid.scad index 73eec62..4ab3636 100644 --- a/poster-tube-lid.scad +++ b/poster-tube-lid.scad @@ -1,6 +1,6 @@ // -*- C -*- -main_dia = 71.2 + 0.50; +main_dia = 71.2 + 0.50 - 2.26; top_thick = 4; main_cnr = 4.0; @@ -13,13 +13,16 @@ rivet_tall = 5.51 + 0.49; over_rivet_wall = 0.5; side_rivet_gap = 1.5; -bayo_interf = 0.75; +bayo_interf = 1.25; bayo_behind = 3.5; bayo_interf_width = 2.0; bayo_interf_slope = 0.75; -seal_thick = 0.1; -seal_recess = [ 2.0, 2.0 ]; // recess depth, recess height +oring_thick = 5.0; +oring_bore = 62.0; + +oring_upper_embed_angle = 80; +oring_compress = 0.1; // proportion side_taper = 1.0; @@ -32,7 +35,7 @@ bayo_slice_size = 1; brace_hole_width = 1.0; brace_above_below = 1.2; -jig_thick = 1.0; +jig_thick = 1.4; jig_hole_dia = 3.0; jig_rim = 5; jig_mark = 5; @@ -44,6 +47,16 @@ bayo_entry_z = bayo_entry; bayo_inramp_x = bayo_entry; bayo_inramp_z = bayo_entry; +oring_mid_dia = oring_bore + oring_thick; +oring_outer_dia = oring_mid_dia + oring_thick; + +oring_oblate = (1 - oring_compress); + +oring_y_rad = oring_thick/2 * oring_oblate; +oring_x_rad = oring_thick/2 / oring_oblate; + +seal_thick = oring_y_rad * (1 + cos(oring_upper_embed_angle)); + side_height = rivet_posn + bayo_behind + rivet_thick/2; side_thick = rivet_tall + over_rivet_wall; @@ -70,7 +83,8 @@ bayo_l = bayo_m + bayo_interf * [ 1/bayo_interf_slope, 1 ]; bayo_k = bayo_l + [ bayo_interf_width, 0 ]; bayo_j = bayo_k + bayo_interf * [ 1/bayo_interf_slope, -1 ]; bayo_i = bayo_j + [ rivet_width, 0 ]; -bayo_h = [ bayo_i[0], bayo_behind + rivet_thick + bayo_above_gap ]; +bayo_h = [ bayo_i[0], bayo_behind + rivet_thick + + bayo_above_gap + bayo_interf ]; bayo_g = [ bayo_m[0] - rivet_width, bayo_h[1] ]; bayo_e = [-bayo_p[0], bayo_p[1]] - [rivet_entry_width,0]; @@ -100,27 +114,37 @@ echo(bayo_polygon); module MainProfile(){ main_cnr_pos = [ side_thick, top_z ] - [1,1]*main_cnr; - translate(main_cnr_pos){ - intersection(){ - difference(){ - circle(r = main_cnr); - circle(r = main_cnr * 0.5); + difference(){ + union(){ + translate(main_cnr_pos){ + intersection(){ + difference(){ + circle(r = main_cnr); + circle(r = main_cnr * 0.5); + } + square([10,10]); + } } - square([10,10]); + polygon([[ -11, seal_thick ], + [ -11, top_z ], + [ main_cnr_pos[0], top_z ], + [ side_thick, main_cnr_pos[1] ], + [ side_thick, -side_height ], + [ side_taper, -side_height ], + [ 0, -rivet_posn ], + [ 0, seal_thick ], + ], + convexity=10); + } + translate([ oring_mid_dia/2 - main_dia/2, 0 ]) + hull(){ + translate([ 0, oring_y_rad ]) + scale([ 1/oring_oblate, oring_oblate ]) + circle(oring_thick/2); + translate([ 0, oring_y_rad*2 - oring_thick/2 ]) + circle(oring_thick/2); } } - polygon([[ -1, seal_thick ], - [ -1, top_z ], - [ main_cnr_pos[0], top_z ], - [ side_thick, main_cnr_pos[1] ], - [ side_thick, -side_height ], - [ side_taper, -side_height ], - [ 0, -rivet_posn ], - [ 0, -(seal_recess[0] + seal_recess[1]) ], - [ seal_recess[0], -(seal_recess[0]) ], - [ seal_recess[0], seal_thick ], - ], - convexity=10); } module RotateProjectSlice(offset, slice_size, nom_rad, real_rad){ @@ -159,7 +183,7 @@ module BayonetCutout(){ polygon(bayo_polygon, convexity=10); } -module ProfilesDemo(){ +module ProfilesDemo(){ ////toplevel translate([-20,0]) MainProfile(); polygon(bayo_polygon, convexity=10); } @@ -171,7 +195,7 @@ module Cover(){ ////toplevel translate([main_dia/2, 0]) MainProfile(); translate([0,0, seal_thick]) - cylinder(h= top_thick, r = main_dia/2); + cylinder(h= top_thick, r = main_dia/2 - 10); } for (r=[0,180]) rotate([0,0, r]) @@ -211,13 +235,21 @@ module Jig(){ ////toplevel } } -module CoverTest(){ ////toplevel +module CoverTest2(){ ////toplevel difference(){ Cover(); SavingHole(); } } +module CoverTest1(){ ////toplevel + difference(){ + CoverTest2(); + translate([0,0, -10]) + cube([ main_dia*3, main_dia * .85, 20], center=true); + } +} + //ProfilesDemo(); //BayonetCutout(); //MainProfile();