From 1e21209cc1daa15556109bf29b17f6632ac49288 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 21 May 2017 23:50:43 +0100 Subject: [PATCH 1/1] sewing-table: MachineArm cutout round end --- sewing-table.scad.m4 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sewing-table.scad.m4 b/sewing-table.scad.m4 index d0029d9..7e5fea9 100644 --- a/sewing-table.scad.m4 +++ b/sewing-table.scad.m4 @@ -32,6 +32,7 @@ demo_slop = 0.1; cutout_l_end_y_front_slop = 0.5; cutout_l_end_y_rear_slop = 0.5; +cutout_l_end_x_slop = 0.25; cutout_l_end_y = 85; cutout_l_end_curve = 1; @@ -318,14 +319,16 @@ module TestDemo(){ ////toplevel module Machine_Arm(){ ysz = cutout_l_end_y_total; // assume the round end is arc of a circle - //rad = + chordlen = dist2d([0,0], [ cutout_l_end_y, cutout_l_end_curve ]); + endrad = cutout_l_end_y / cutout_l_end_curve * chordlen; translate([0,0,-30]) linear_extrude(height=60) { translate(tile01_tr + [0, (-cutout_tile01_y + cutout_tile11_y)/2]) { intersection(){ translate([-100, -ysz/2]) square([400, ysz]); - + translate([ endrad - cutout_l_end_y - cutout_l_end_x_slop, 0 ]) + circle(r=endrad, $fa=0.01,$fd=5); } } } -- 2.30.2