chiark / gitweb /
shelf-label-holder: Main instead. Test reveals Print does not work due to "flashing...
[reprap-play.git] / shelf-label-holder.scad
index 2912db7847eeed818ca62a658798b3feb488509a..e959146c4c32056dcde149c82322e095809ef195 100644 (file)
@@ -2,12 +2,16 @@
 
 prong_nomdepth = 15;
 prong_curverad = 30;
-prong_thick = 1.0;
+prong_thick = 0.7;
 prong_maxdepth = 18;
 
+front_thick = 2.5;
+
 nom_shelf = 14.54;
 
-interference = 0.5;
+interference = 0.25;
+
+length = 60;
 
 // calculated
 
@@ -27,13 +31,34 @@ module ProngElevationUnrotated(){
 }
 
 module Elevation(){
-  rotate(-interference_angle)
-    ProngElevationUnrotated();
-  translate([0, -nom_shelf])
-    mirror([0,1])
-    rotate(-interference_angle)
-    ProngElevationUnrotated();
+  difference(){
+    union(){
+      rotate(-interference_angle)
+       ProngElevationUnrotated();
+      translate([0, -nom_shelf])
+       mirror([0,1])
+       rotate(-interference_angle)
+       ProngElevationUnrotated();
+      translate([-10, -nom_shelf - prong_thick/2])
+       square([10, nom_shelf + prong_thick]);
+    }
+    mirror([1,0])
+      translate([ front_thick, -100 ])
+      square([ 50, 200 ]);
+  }
+}
+
+module Main(){
+  linear_extrude(height=length)
+    Elevation();
+}
+
+module Print(){
+  rotate([0,-90,0])
+    Main();
 }
 
 //ProngElevationUnrotated();
-Elevation();
+//Elevation();
+Main();
+//Print();