chiark / gitweb /
toolbox-inserts: well rounded edge, wip
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 27 Apr 2025 11:47:11 +0000 (12:47 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 27 Apr 2025 11:49:46 +0000 (12:49 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
toolbox-inserts.scad

index 26ea28bf59a3b4dfc1889969453952452d04cbfc..9b30d13916a94202b6456d48f301c1a8c20363c9 100644 (file)
@@ -45,6 +45,7 @@ $screw_test = false;
 
 // calculated
 
+wall_top_r = 4;
 wall_top_inner_bevel_ratio = 0.25; // OLD (for bevels, which we don't do)
 
 fixing_head_top_z = -below_plane_z + fixing_head_th;
@@ -80,6 +81,15 @@ module FixingSurround() {
 module WellSurroundGapElevation(z_bottom, z_edge, z_wayhigh, gap) {
   rectfromto([ gap[0], z_bottom ],
             [ gap[1], z_wayhigh ]);
+  difference(){
+    rectfromto([ gap[0] - wall_top_r, z_edge - wall_top_r ],
+              [ gap[1] + wall_top_r, z_wayhigh ]);
+    for (x= [ gap[0] - wall_top_r,
+             gap[1] + wall_top_r ]) {
+      translate([ x, z_edge - wall_top_r ])
+       circle(r = wall_top_r - 0.1);
+    }
+  }
 }
 
 // WellSurround(...) {
@@ -131,7 +141,7 @@ module WellSurround(
 
       for (gap=gaps) {
 //     linextr_y_xz(-100, 100)
-//       WellSurroundGapElevation(well_stiffening_height, dz, 100, gaps);
+//       WellSurroundGapElevation(well_stiffening_height, dz, 100, gap);
       }
 
       translate(concat(offset, [0])) for (gap=gaps) {