chiark / gitweb /
toolbox-inserts: bevel edge wip
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 6 May 2025 19:20:59 +0000 (20:20 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 6 May 2025 19:20:59 +0000 (20:20 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
toolbox-inserts.scad

index 437c5161c39978aefccb2c15e5e215506384307f..4ea9b510b82204449d3061b47cd458d1abf2722d 100644 (file)
@@ -185,22 +185,22 @@ module BoxCavityModelMainPlan() {
   }
 }
 
-module BoxCavityEdgeModelPlan() {
-  difference(){
-    BoxCavityModelMainPlan();
-    offset(r = -box_edge_width)
-      BoxCavityModelMainPlan();
-  }
-}
-
 module BoxCavityModel() { ////toplevel
   translate([ 0,0, -below_plane_z ]) {
     linextr(0, box_main_z)
       BoxCavityModelMainPlan();
-    for (z = [-box_edge_z_hindent, box_main_z-10 + box_edge_z_hindent]) {
-      linextr(z, z+10) {
-       BoxCavityEdgeModelPlan();
+
+    difference(){
+      hull(){
+       linextr(0, 1)
+         BoxCavityModelMainPlan();
+       linextr(-box_edge_z_hindent, 1)
+         offset(r = -box_edge_z_hindent)
+         BoxCavityModelMainPlan();
       }
+      linextr(-1, 2)
+       offset(r = -box_edge_width)
+       BoxCavityModelMainPlan();
     }
   }
 }
@@ -426,7 +426,8 @@ module BoxModelTest(){ ////toplevel
   h = 0.5;
   difference(){
     linextr(0, h + box_edge_z_hindent) {
-      BoxCavityEdgeModelPlan();
+      // TODO this needs to be here but we deleted it!
+      // BoxCavityEdgeModelPlan();
     }
     AtPlateFixings(){
       linextr(-10, 10)