chiark / gitweb /
poster-tube-lid: before rework bayo polygon
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 7 Oct 2017 23:33:00 +0000 (00:33 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 7 Oct 2017 23:33:00 +0000 (00:33 +0100)
poster-tube-lid.scad.pl

index acca6430ebbf41380fe7935c580d9de7ea8447bb..01ec6aba0fd8923e21eec071c1fc5a4d5187fba6 100755 (executable)
@@ -17,9 +17,12 @@ rivet_width = 4.15 + 1.0;
 rivet_tall = 5.51 + 0.49;
 
 over_rivet_gap = 0.5;
+side_rivet_gap = 1.5;
 
 bayo_interf = 0.75;
 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
@@ -37,16 +40,29 @@ top_z = top_thick + seal_thick;
 
 bayo_entry = bayo_behind / 3.0;
 bayo_top_z = bayo_behind + rivet_thick + over_rivet_gap;
+bayo_entry_ramp = bayo_entry + bayo_interf;
+
+rivet_entry_width = rivet_width + side_rivet_gap;
 
 $fs=0.5;
 $fa=5;
 
 // bayonet definition
 
-bayo_polygon = [[ -bayo_entry,        -5             ],
-               [ -bayo_entry,        0              ],
-               [ 0,                  bayo_entry     ],
-               [ bayo_entry,         bayo_entry     ]];
+bayo_polygon = [[ -bayo_entry -rivet_entry_width,   -5             ],
+               [ -bayo_entry -rivet_entry_width,   0              ],
+               [ -rivet_entry_width, bayo_entry     ],
+//             [ bayo_entry,         bayo_top_z     ]
+               [ -rivet_entry_width, bayo_top_z ],
+               [  bayo_entry + 2*bayo_interf/bayo_interf_slope + bayo_interf_width,  bayo_behind             ],
+               [  bayo_entry + bayo_interf/bayo_interf_slope + bayo_interf_width,  bayo_behind + bayo_interf             ],
+               [  bayo_entry + bayo_interf/bayo_interf_slope,  bayo_behind + bayo_interf             ],
+               [  bayo_entry,  bayo_behind             ],
+               [  0,  bayo_behind - bayo_entry             ],
+               [  0,             bayo_entry             ],
+               [  bayo_entry,                      0             ],
+               [  bayo_entry,                      -5             ],
+                 ];
 
 END