chiark / gitweb /
poster-tube-lid: inttroduce top_minthick_by_oring
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 9 Oct 2017 01:31:17 +0000 (02:31 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 9 Oct 2017 01:31:17 +0000 (02:31 +0100)
poster-tube-lid.scad

index c5b1e8f..68bb15e 100644 (file)
@@ -1,7 +1,8 @@
 // -*- C -*-
 
 main_dia = 71.2 + 0.50 - 2.26;
-top_thick = 4;
+top_minthick_middle = 4;
+top_minthick_by_oring = 2.5;
 
 main_cnr = 4.0;
 
@@ -61,6 +62,9 @@ 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;
 
+top_thick = max(top_minthick_middle,
+               top_minthick_by_oring + oring_y_rad);
+
 top_z = top_thick + seal_thick;
 
 bayo_entry = bayo_behind / 3.0;