chiark / gitweb /
toolbox-inserts: entirely new approach to bevels
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 20 Apr 2025 18:36:33 +0000 (19:36 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 20 Apr 2025 18:36:33 +0000 (19:36 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
toolbox-inserts.scad

index 054612268e7b99b92933f15167daf6deca78baa4..e5a55aef1bfee686bb36cacc0bd2b78681a2ef11 100644 (file)
@@ -47,30 +47,25 @@ module WellSurround(half_height, wall=well_surround_wall) {
   // IOW its z==0 must be where the top of the wall is,
   // and half_height is the depth of the well below that.
 
-  render() difference(){
-    union(){
-      minkowski(){
-
-       linextr(-10, half_height - wall/2)
-         offset($fn=4, r = wall/2)
-         projection(cut=false)
-         children(0);
-
-       WallMinkowskiSphere(wall);
-
-      }
-    }
-
-    translate([0, 0, half_height]) {
-      children(0);
-
-      minkowski(){
-       linextr(0,1)
-         projection(cut=true)
-         translate([0,0, wall/2])
-         children(0);
-
-       WallMinkowskiInner(wall);
+  render() {
+    minkowski(){
+      WallMinkowskiSphere(wall);
+
+      difference(){
+       union(){
+
+         linextr(-10, half_height - wall/2)
+           offset($fn=8, r = wall/2)
+           projection(cut=false)
+           children(0);
+       }
+
+       minkowski(){
+         WallMinkowskiSphere(wall);
+         translate([0, 0, half_height]) {
+           children(0);
+         }
+       }
       }
     }
   }