chiark / gitweb /
sewing-table: new front profile wip
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 4 Jun 2017 00:16:54 +0000 (01:16 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 4 Jun 2017 00:16:54 +0000 (01:16 +0100)
Makefile
sewing-table-front-profile.fig
sewing-table.scad.m4

index 1ccbb32a780857aa58bb1c7d13cc2d7a27db244f..4c6c5bd473ea0837ae0f42ed63bd78c9045e4482 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -167,7 +167,7 @@ question-question.eps: question-question.fig
 
 sewing-table%.stl: sewing-table-rear-profile.dxf
 
-sewing-table-rear-profile.eps: sewing-table-rear-profile.fig
+sewing-table-%-profile.eps: sewing-table-%-profile.fig
                fig2dev -L eps -D +40 <$< >$@.tmp
                @mv -f $@.tmp $@
 
index 16b6f59f8852c5a6c78e0b7d5dd34e10c132e349..d318174b1dc499a900e1d0bf483b9c1d20162bd7 100644 (file)
@@ -15,7 +15,7 @@ Single
 2 1 0 1 1 7 50 -1 -1 0.000 0 0 -1 0 0 2
         3455 7525 12541 7946
 3 1 0 1 28 7 40 -1 -1 0.000 0 0 0 25
-        5678 3664 4889 3652 4306 3643 3840 3631 3270 3619 2819 3607
+        5678 3664 4889 3652 4306 3643 3820 3620 3256 3600 2800 3591
         2416 3574 3055 1515 11023 1659 11041 2606 10905 2752 10663 2946
         10504 3060 10304 3176 10113 3305 9859 3397 9581 3493 9306 3565
         8734 3613 8367 3618 7996 3636 7520 3639 7119 3651 6713 3663
index 64f144bce908fa5eec60b873cf500b54d725f599..724d24bcb6f8c8360ace4db18fe728a934945c4e 100644 (file)
@@ -489,6 +489,21 @@ module Machine_NewRearProfile(){
   }
 }
 
+module Machine_NewFrontProfile(){
+  // figures copied out of xfig edit boxes
+  // best not to edit the posbox size if poss - just move it
+  posbox = 10 * ([11.8022,8.0600] - [4.2044,19.1867]); // box, Green
+  refline = 10 * ([7.6778,16.7222] - [27.8689,17.6578]); // line, Blue
+  refline_mm = (11-1)*10;
+  sh = -[abs(posbox[0]), abs(posbox[1])];
+  rot = atan2(-refline[0], refline[1]);
+  sc = refline_mm / vectorlen2d(refline);
+  //echo("SH",sh,rot,sc);
+  mirror([1,0]) scale(sc) rotate(rot+90) translate(sh){
+    import("sewing-table-front-profile.dxf", convexity=10); // spline, Pink3
+  }
+}
+
 module Machine_NewRearCurve(){
   slant = atan2(4,210-10);
   //echo("SL",slant);
@@ -850,6 +865,7 @@ module Demo(){ ////toplevel
 //Machine_Profile();
 //Machine_NewRearProfile();
 //Machine_NewRearCurve();
+//Machine_NewFrontProfile();
 //Machine_Curves();
 //Machine();
 //FitTest();