chiark / gitweb /
sprinkler-spike-receptacle: add *MidRounding
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 9 Sep 2017 15:49:49 +0000 (16:49 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 9 Sep 2017 15:49:49 +0000 (16:49 +0100)
sprinkler-spike-receptacle.scad

index 643a8e43d55a9bd581138f05853a15c9e4202d9b..bf470dc06aaa6eac2c53635c932fa751d60bad83 100644 (file)
@@ -43,6 +43,24 @@ module NegativePlan(){
           [-x0, -5]]);
 }
 
+module SomeMidRounding(sq_size, z_extra) {
+  translate([0,0,-z_extra])
+    linear_extrude(height= main_height + z_extra*2)
+    rotate(45)
+    square( sq_size, center=true );
+}
+
+module PositiveMidRounding(){
+//  translate([0,0,-5])
+//    linear_extrude(height= main_height + 10)
+//    rotate(45)
+//    square( spike_web_thick*2.5, center=true );
+}
+
+module NegativeMidRounding(){
+  SomeMidRounding(spike_web_thick*2.5, 5);
+}
+
 module PositivePlan(){
   w = main_width;
   translate([ -w/2, 0 ])
@@ -87,9 +105,11 @@ module Main(){
   difference(){
     union(){
       MultiplySolidifyPlan(pos_web_thick) PositivePlan();
+      PositiveMidRounding();
       MultiplyForMount() Mount();
     }
     MultiplySolidifyPlan(spike_web_thick) NegativePlan();
+    NegativeMidRounding();
     MultiplyForMount() MountHole();
   }
 }