chiark / gitweb /
pull-cord-keeper: cutmore
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 1 Aug 2015 22:47:25 +0000 (23:47 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 1 Aug 2015 22:47:25 +0000 (23:47 +0100)
pull-cord-keeper.scad

index 39b063d..f4d21c0 100644 (file)
@@ -64,20 +64,17 @@ module Ribs(){
   }
 }          
 
-module Division(biggerpi) {
-  xgap = feedxgap * biggerpi;
-  zgap = feedzgap * biggerpi;
-
+module Division(cutmore) {
   mirror([0,0,1]) {
-    translate([0, 0, zgap/2 * (1 - 2*biggerpi)]) {
-      translate([-ziglen + xgap/2, -100, 0])
+    translate([0, 0, -cutmore*feedzgap/2]) {
+      translate([-ziglen + -cutmore*feedxgap/2, -100, 0])
        cube([100, 100, 50]);
     }
   }
   translate([blockwidth/2 - blockoverlapcnr, -50, -50])
     cube([100, 100, 100]);
 
-  translate([50, houterrad + blockdepth/2 + ribsgap * biggerpi, 0])
+  translate([50, houterrad + blockdepth/2 + -cutmore*ribsgap, 0])
     rotate([-90,0,90])
     linear_extrude(height=100)
     Ribs();
@@ -88,20 +85,20 @@ module SDemo(){
   %  Positive();
   //  Division(0);
   //}
-  Division(0);
+  Division(-1);
 }
 
 module A(){
   difference(){
     Positive();
-    Division(1);
+    Division(+1);
   }
 }
 
 module B(){
   intersection(){
     Positive();
-    Division(0);
+    Division(-1);
   }
 }
 
@@ -113,8 +110,8 @@ module Demo(){
 //Ribs();
 //Demo();
 
-//A();
-B();
-%Division(0);
+A();
+//B();
+//%Division(+1);
 
 //Demo();