X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=reprap-play.git;a=blobdiff_plain;f=sewing-table.scad.m4;h=724d24bcb6f8c8360ace4db18fe728a934945c4e;hp=64f144bce908fa5eec60b873cf500b54d725f599;hb=2665b64e4462923d8109766ac4b3fc459bef7d52;hpb=b865c844b9d13c880bd0792db3724f32031fdc9b diff --git a/sewing-table.scad.m4 b/sewing-table.scad.m4 index 64f144b..724d24b 100644 --- a/sewing-table.scad.m4 +++ b/sewing-table.scad.m4 @@ -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();