chiark / gitweb /
sewing-table: Front: frontcurve_dualcurve wip
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 3 Jun 2017 18:28:52 +0000 (19:28 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 3 Jun 2017 18:28:52 +0000 (19:28 +0100)
sewing-table.scad.m4

index f44e1e3f383fd27cc553bf1660c9ae9afbc34922..e7ff1e9634820fc6b68c104a02048424b66d94a5 100644 (file)
@@ -100,6 +100,9 @@ frontcurve_side_skew = 3.5 / 72;
 frontcurve_avoid_y = 70;
 frontcurve_z_slop = 0.75;
 
 frontcurve_avoid_y = 70;
 frontcurve_z_slop = 0.75;
 
+frontcurve_strt_len = 60;
+frontcurve_dualcurve_angle = 90 - 65;
+
 // calculated
 
 TEST = false;
 // calculated
 
 TEST = false;
@@ -726,6 +729,13 @@ module Tile00(){ ////toplevel
   sz = [250,170];
   c0 = tile01_tr + [0,-sz[1]];
   c = Rectangle_corners(c0, sz);
   sz = [250,170];
   c0 = tile01_tr + [0,-sz[1]];
   c = Rectangle_corners(c0, sz);
+
+  // the edge c[1]..c[2] needs a diagonal chunk, from c1bis to c2bis
+  c2bis = [ -cutout_l_end_x + rearedge_len + frontcurve_strt_len, c[2][1] ];
+  c1bis = [ c[1][0],
+           c[2][1] -
+           (c[2][0] - c2bis[0]) * tan(90 - frontcurve_dualcurve_angle) ];
+
   cnr_posts = Rectangle_corners2posts(c);
   cty = cutout_tile01_y;
   rcy = cty + frontcurve_avoid_y;
   cnr_posts = Rectangle_corners2posts(c);
   cty = cutout_tile01_y;
   rcy = cty + frontcurve_avoid_y;
@@ -746,6 +756,9 @@ module Tile00(){ ////toplevel
     }
     RoundCornerCut(rcs);
     Machine();
     }
     RoundCornerCut(rcs);
     Machine();
+    translate([0,0,-20]) linear_extrude(height=40) {
+      polygon([ c1bis, c1bis + [50,0], c2bis + [50,0], c2bis ]);
+    }
   }
   RoundCornerAdd(rcs);
 }
   }
   RoundCornerAdd(rcs);
 }