chiark / gitweb /
wardrobe-hook: straight-on version: sort out toplevels and a Demo
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 23 Feb 2014 19:50:15 +0000 (19:50 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 23 Feb 2014 19:50:15 +0000 (19:50 +0000)
Makefile
wardrobe-hook.scad

index 6a4b9c5f5dcb5a3ff022169e353903449b7ce604..3d1b5a512e0e96ae3a055ef3ffc0a468ec3f5ccc 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,7 @@ PLAY ?= $(CWD)
 
 CONFIG=$(PLAY)/slic3r-config.ini
 
 
 CONFIG=$(PLAY)/slic3r-config.ini
 
-USING_AUTOS ?= filamentspool xeno-drivebay-bracket dungeonquest-cone anke-gps-bracket cable-hole-trunking-cover anglepoise-neck crossbar-computer-led-mount
+USING_AUTOS ?= filamentspool xeno-drivebay-bracket dungeonquest-cone anke-gps-bracket cable-hole-trunking-cover anglepoise-neck crossbar-computer-led-mount wardrobe-hook
 AUTO_TOPLEVELS := $(foreach m,$(USING_AUTOS),$(shell $(PLAY)/toplevel-find $m))
 
 AUTO_INCS = funcs.scad
 AUTO_TOPLEVELS := $(foreach m,$(USING_AUTOS),$(shell $(PLAY)/toplevel-find $m))
 
 AUTO_INCS = funcs.scad
index 532ec44322a17ae456f1c3b7af3d44636c6ec2c1..b746a1f8e03e8a213241675f61fb1f6debd68c4a 100644 (file)
@@ -101,7 +101,7 @@ module PlaneAbove(){
 taperangle = -270 + tangent_intersect_beta([-hookcy, 0],
                                          hookoutrad,
                                          [-eltop[1], -eltop[0]]);
 taperangle = -270 + tangent_intersect_beta([-hookcy, 0],
                                          hookoutrad,
                                          [-eltop[1], -eltop[0]]);
-module Hook(){ ////toplevel
+module HookL(){ ////toplevel
   difference(){
     rotate([taperangle,0,0])
       translate([0,-eltop[1],0])
   difference(){
     rotate([taperangle,0,0])
       translate([0,-eltop[1],0])
@@ -139,7 +139,7 @@ module SElevation(){
           [-1,         boty]]);
 }
 
           [-1,         boty]]);
 }
 
-module SHook(){
+module SHookL(){ ///toplevel
   intersection(){
     linear_extrude(height=topwidth) SPlan();
     rotate([0,-90,0]) translate([0,0,-100]) linear_extrude(height=200)
   intersection(){
     linear_extrude(height=topwidth) SPlan();
     rotate([0,-90,0]) translate([0,0,-100]) linear_extrude(height=200)
@@ -147,15 +147,19 @@ module SHook(){
   }
 }
 
   }
 }
 
-// toplevels etc.
+// other toplevels etc.
 
 
-module RightHook(){ ////toplevel
-  mirror([1,0,0]) Hook();
+module HookR(){ ////toplevel
+  mirror([1,0,0]) HookL();
 }
 
 }
 
-translate([-30,0,0]) SHook();
-//SPlan();
-//translate([30,0,0]) SElevation();
-//translate([120,0,0]) ElevationCore();
-//ElevationCore();
-//RightHook();
+module SHookR(){ ////toplevel
+  mirror([1,0,0]) SHookL();
+}
+
+module Demo(){ ////toplevel
+  translate([-30,tubeheight,0]) HookL();
+  translate([  0,tubeheight,0]) HookR();
+  translate([ 30,         0,0]) SHookL();
+  translate([ 60,         0,0]) SHookR();
+}