chiark / gitweb /
sewing-table: Machine_NewRearProfile wip
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 31 May 2017 20:56:51 +0000 (21:56 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 31 May 2017 20:56:51 +0000 (21:56 +0100)
sewing-table-rear-profile.fig
sewing-table.scad.m4

index fa1ea3be66ad16fa07b31ab32f87454ba8cc7f7c..c53817abac3b66e237642fccf84ade3d6959d6c9 100644 (file)
@@ -12,6 +12,8 @@ Single
         11014 -9675 -5445 -9675 -5445 16370 11014 16370 11014 -9675
 2 2 0 1 2 7 50 -1 -1 0.000 0 0 -1 0 0 5
         3255 -6357 -7303 -6357 -7303 18013 3255 18013 3255 -6357
         11014 -9675 -5445 -9675 -5445 16370 11014 16370 11014 -9675
 2 2 0 1 2 7 50 -1 -1 0.000 0 0 -1 0 0 5
         3255 -6357 -7303 -6357 -7303 18013 3255 18013 3255 -6357
+2 1 0 1 1 7 50 -1 -1 0.000 0 0 -1 0 0 2
+        -2808 6102 -1101 12715
 3 1 0 1 28 7 40 -1 -1 0.000 0 0 0 26
         3330 -6390 1755 -5895 495 -5310 -630 -4590 -1440 -3825 -2115 -2790
         -2745 -1710 -3240 -450 -3555 990 -3555 2430 -3420 3780 -2970 5625
 3 1 0 1 28 7 40 -1 -1 0.000 0 0 0 26
         3330 -6390 1755 -5895 495 -5310 -630 -4590 -1440 -3825 -2115 -2790
         -2745 -1710 -3240 -450 -3555 990 -3555 2430 -3420 3780 -2970 5625
index 2baad77a57b7ef1534d6ac73fb135e1a56087adb..2bb8f7af1af1513b1c8135437276de0023d585c1 100644 (file)
@@ -423,7 +423,16 @@ module Machine_Profile(){
 }
 
 module Machine_NewRearProfile(){ ////toplevel
 }
 
 module Machine_NewRearProfile(){ ////toplevel
-  import("sewing-table-rear-profile.dxf", convexity=10);
+  // figures copied out of xfig edit boxes
+  // best not to edit the posbox size if poss - just move it
+  posbox = 10 * ([7.2333,-14.1267] - [-16.2289,40.0289]);
+  sideline = -10 * ([-6.2400,13.5600] - [-2.4467,28.2556]);
+  sh = -[abs(posbox[0]), abs(posbox[1])];
+  rot = atan2(-sideline[0], sideline[1]);
+  echo("SH",sh,rot);
+  rotate(rot) translate(sh){
+    import("sewing-table-rear-profile.dxf", convexity=10);
+  }
 }
 
 module Machine_RearProfile(){ ////toplevel
 }
 
 module Machine_RearProfile(){ ////toplevel