chiark / gitweb /
wardrobe-hook: straight-on version: seems to work
[reprap-play.git] / wardrobe-hook.scad
index 27b02dc984b03a2a954c4ad57dcc336918875aff..532ec44322a17ae456f1c3b7af3d44636c6ec2c1 100644 (file)
@@ -129,13 +129,33 @@ module SPlan(){
              hookcurl + 90 - sbend);
 }
 
+module SElevation(){
+  boty = shookcy - hookoutrad - 1;
+  polygon([[-1,         tubeheight],
+          [topwidth,   tubeheight],
+          [topwidth,   elmid[1]],
+          [hookwidth,  shookcy],
+          [hookwidth,  boty],
+          [-1,         boty]]);
+}
+
+module SHook(){
+  intersection(){
+    linear_extrude(height=topwidth) SPlan();
+    rotate([0,-90,0]) translate([0,0,-100]) linear_extrude(height=200)
+      SElevation();
+  }
+}
+
 // toplevels etc.
 
 module RightHook(){ ////toplevel
   mirror([1,0,0]) Hook();
 }
 
-SPlan();
-translate([60,0,0]) ElevationCore();
+translate([-30,0,0]) SHook();
+//SPlan();
+//translate([30,0,0]) SElevation();
+//translate([120,0,0]) ElevationCore();
 //ElevationCore();
 //RightHook();