chiark / gitweb /
toolbox-inserts: formatting and remove extraneous render
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 21 Apr 2025 10:31:38 +0000 (11:31 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 21 Apr 2025 10:31:43 +0000 (11:31 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
toolbox-inserts.scad

index 465f9ce8fa7b3b1a2b1f361e1f464b163272b9c5..bbb15376336c3b1c95744b2f8698c94b6d3dd83a 100644 (file)
@@ -51,36 +51,30 @@ module WellSurround(half_height, gaps, 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(){
-
-  render() {
+  render() difference(){
 //    minkowski(){
 //      WallMinkowskiSphere(wall);
 
-      difference(){
-       linextr(-10, half_height)
-         offset($fn=8, r = wall)
-         projection(cut=false)
-         children(0);
+    difference(){
+      linextr(-10, half_height)
+       offset($fn=8, r = wall)
+       projection(cut=false)
+       children(0);
 
 //     minkowski(){
 //       WallMinkowskiSphere(wall);
-         translate([0, 0, half_height]) {
-           children(0);
-         }
+      translate([0, 0, half_height]) {
+       children(0);
+      }
 //     }
 
-       for (gap=gaps) {
-         linextr_x_yz(gap[0], gap[1])
-           rectfromto([ -100, well_stiffening_height ], [ 100,100 ]);
-       }
+      for (gap=gaps) {
+       linextr_x_yz(gap[0], gap[1])
+         rectfromto([ -100, well_stiffening_height ], [ 100,100 ]);
       }
     }
 
-//  }
-
-  render() linextr(-100, -0.1) square(1000, center=true);
+    linextr(-100, -0.1) square(1000, center=true);
   }
 }