chiark / gitweb /
wardrobe-hook: straight-on version: seems to work
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 23 Feb 2014 19:41:41 +0000 (19:41 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 23 Feb 2014 19:41:41 +0000 (19:41 +0000)
wardrobe-hook.scad

index 722a9e1..532ec44 100644 (file)
@@ -129,7 +129,7 @@ module SPlan(){
              hookcurl + 90 - sbend);
 }
 
-module SElevationCore(){
+module SElevation(){
   boty = shookcy - hookoutrad - 1;
   polygon([[-1,         tubeheight],
           [topwidth,   tubeheight],
@@ -139,14 +139,23 @@ module SElevationCore(){
           [-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([30,0,0]) SElevationCore();
-translate([120,0,0]) ElevationCore();
+translate([-30,0,0]) SHook();
+//SPlan();
+//translate([30,0,0]) SElevation();
+//translate([120,0,0]) ElevationCore();
 //ElevationCore();
 //RightHook();