chiark / gitweb /
knifeblock: add Pegs toplevel
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 1 Jan 2015 19:38:37 +0000 (19:38 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 1 Jan 2015 19:38:37 +0000 (19:38 +0000)
knifeblock.scad

index 92032d8894890cdce16a6056cbb551b846ee0d68..4cee4c889426bdcdba0dc41a09407c18fa327228 100644 (file)
@@ -285,12 +285,15 @@ module Demo(){ ////toplevel
   color([1,0,0]) AtSides() { DemoPeg(); DemoPeg(); }
 }
 
   color([1,0,0]) AtSides() { DemoPeg(); DemoPeg(); }
 }
 
+module Pegs(){ ////toplevel
+  Peg();
+  translate([-peghead-3, 0,0]) Peg();
+}
+
 module CoverParts(){ ////toplevel
   Cover();
 module CoverParts(){ ////toplevel
   Cover();
-  translate([0, coverlonglen, pegheight/2-pegslopv]) {
-    Peg();
-    translate([-peghead-3, 0,0]) Peg();
-  }
+  translate([0, coverlonglen, pegheight/2-pegslopv])
+    Pegs();
 }
 
 //Block();
 }
 
 //Block();
@@ -301,3 +304,4 @@ module CoverParts(){ ////toplevel
 //Cover();
 //Holes();
 //%CoverTemplate();
 //Cover();
 //Holes();
 //%CoverTemplate();
+//Pegs();