chiark / gitweb /
flyscreen-handle: provide GappingSection
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 26 Aug 2016 00:13:33 +0000 (01:13 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 26 Aug 2016 00:13:33 +0000 (01:13 +0100)
flyscreen-handle.scad

index ecc5ff833ea6be0ec8e1ea11675598555685f6e5..253febf650d9d7ea908c3a50a6b0dfac2208aba0 100644 (file)
@@ -85,18 +85,27 @@ module RetainSection(){
     translate([0,ins_orad]) circle(r=retain_rad, $fn=20);
 }
 
-module RetainCutout(){
+module RetainCutout(gapping=false){
   rotate(180-retain_empir_angle)
     translate([0,ins_orad]) {
     difference(){
       circle(r=retain_rad + cutout_gap, $fn=20);
-      rotate(180 + retain_empir_angle/2)
-       translate([0, -retain_empir_stalkw])
-       square([100, retain_empir_stalkw*2]);
+      if (!gapping)
+       rotate(180 + retain_empir_angle/2)
+         translate([0, -retain_empir_stalkw])
+         square([100, retain_empir_stalkw*2]);
     }
   }
 }  
 
+module GappingSection(){
+  difference(){
+    InsertSection();
+    RetainCutout(true);
+  }
+  HandleSection();
+}
+
 module WithRetainSection(){
   difference(){
     InsertSection();
@@ -126,5 +135,6 @@ module Test(){
 
 //Demo();
 //WithRetainSection();
-BasicSection();
+//BasicSection();
+GappingSection();
 //Test();