chiark / gitweb /
earring-stand: break out FrontPattern (nfc)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 23 Jul 2016 23:30:58 +0000 (00:30 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 23 Jul 2016 23:30:58 +0000 (00:30 +0100)
earring-stand.scad

index ad1b018..1d4ee2f 100644 (file)
@@ -231,14 +231,18 @@ module Base(){
          thicks[0]]);
 }
 
          thicks[0]]);
 }
 
+module FrontPattern(){
+  square([front_width,
+         front_height - eclip_wall_offset + thicks[1]]);
+}
+
 module Front(){
   ObjectJoins(1);
   rotate([0, 90-beta, 0])
     translate([0, 0, ppxl])
     rotate([0,0,90]) {
 module Front(){
   ObjectJoins(1);
   rotate([0, 90-beta, 0])
     translate([0, 0, ppxl])
     rotate([0,0,90]) {
-    cube([front_width,
-         front_height - eclip_wall_offset + thicks[1],
-         thicks[1]]);
+    linear_extrude(height=thicks[1])
+      FrontPattern();
   }
 }
 
   }
 }