chiark / gitweb /
poster-tube-lid: catch wip, CatchPostDistort PoC
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 22 Nov 2018 00:12:46 +0000 (00:12 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 22 Nov 2018 00:12:46 +0000 (00:12 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Makefile
poster-tube-lid.scad

index beda1a879c4dbd2f388d046992eb2b503952df01..a8126622d723ed0cee03ec8c2ef79c0069d75a6a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -185,6 +185,12 @@ electron-token.stl: electron-token.scad
                screw-recess-test-number-s$s.fig \
                screw-recess-test-number-s$s.eps)
 
                screw-recess-test-number-s$s.fig \
                screw-recess-test-number-s$s.eps)
 
+poster-tube-lid,CatchPostDistort.stl: \
+       distort-stl poster-tube-lid,CatchPreDistort.auto.stl
+               ./distort-stl <poster-tube-lid,CatchPreDistort.auto.stl \
+                       project-cylinder 100 >$@.tmp
+               mv -f $@.tmp $@
+
 %.dxf:         %.eps
                pstoedit -dt -f "dxf: -polyaslines -mm" $< $@
 
 %.dxf:         %.eps
                pstoedit -dt -f "dxf: -polyaslines -mm" $< $@
 
index 4ce2176f513dbe34e646cfbac7859aae7a5a0ab6..35c73c8bd58a44121f02003853fee6bbf433bd59 100644 (file)
@@ -145,7 +145,7 @@ catch_stem_end_h = catch_stem_h;
 catch_pin_width = rivet_entry_width - catch_pin_gap;
 
 cppy6 = -catch_strap_width/2;
 catch_pin_width = rivet_entry_width - catch_pin_gap;
 
 cppy6 = -catch_strap_width/2;
-cppxC = TAU * 0.34 * main_dia/2;
+cppxC = 0.34 * sm_inner_rad * TAU;
 cppB = [ catch_pin_width/2,
         cppy6
         + catch_stem_below_gap
 cppB = [ catch_pin_width/2,
         cppy6
         + catch_stem_below_gap
@@ -564,7 +564,8 @@ module CatchCoreProfile(){ ////toplevel
 }
 
 module CatchPreDistort(){ /////toplevel
 }
 
 module CatchPreDistort(){ /////toplevel
-  rotate([90,0,0])
+  scale(100 / sm_inner_rad)
+    rotate([90,0,0])
     linear_extrude(height=catch_strap_thick, convexity=10)
     CatchCoreProfile();
 }
     linear_extrude(height=catch_strap_thick, convexity=10)
     CatchCoreProfile();
 }