+ 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_tile11_x - cutout_l_end_x_slop, 0 ])
+ circle(r=endrad, $fa=0.01,$fd=5);
+ }
+ }
+ }
+}
+
+module Machine_Profile(){
+ first_rear = machine_rear_profile[0];
+ below_point = 0.5 * ( first_rear + first_front ) + [ 0, -10 ];
+ pol = concat( machine_rear_profile,
+ [ below_point ],
+ machine_front_profile);
+ skew_angle = atan2( first_front[1] - first_rear[1],
+ first_front[0] - first_rear[0] );
+ echo(below_point, pol, skew_angle);
+ hull(){
+ for (z=[0,-40]) {
+ translate([0,z]) {
+ //scale([1,5])
+ rotate([0,0, -skew_angle ]){
+ //translate( - first_front )
+ polygon(pol);
+ }
+ }
+ }
+ }
+}
+
+module Machine_NewRearProfile(){ ////toplevel
+ import("sewing-table-rear-profile.dxf", convexity=10);
+}
+
+module Machine_RearProfile(){ ////toplevel
+ intersection(){
+ Machine_Profile();
+ translate([ -200 + machine_rear_to_front/2, -100 ]) {
+ square([200,200]);
+ }
+ }
+}
+
+module Machine_FrontProfile(){
+ intersection(){
+ Machine_Profile();
+ translate([ machine_rear_to_front/2, -100 ]) {
+ square([200,200]);
+ }
+ }
+}
+
+module Machine_Curves(){ ////toplevel
+ translate([ tile01_tr[0] - cutout_l_end_x + rearedge_len,
+ cutout_tile11_y,
+ 0 ]){
+ //%cube([20,20,20]);
+ translate([ -reartablet_x,
+ -1,
+ -reartablet_z])
+ mirror([0,0,1])
+ cube([ reartablet_x+1,
+ reartablet_y+1,
+ 20 ]);
+ }
+ translate([ tile01_tr[0] - cutout_l_end_x + rearedge_len,
+ cutout_tile11_y,
+ frontcurve_z_slop ]){
+ translate([ 0, -first_front[0] , 0 ])
+ multmatrix([[1, -frontcurve_side_skew, 0, 0],
+ [0, 1, 0, 0],
+ [0, 0, 1, 0],
+ [0, 0, 0, 1]])
+ translate([ 0, first_front[0] , 0 ])
+ mirror([1,0,0]){
+ rotate([0,-90,0])rotate([0,0,-90]){
+ linear_extrude(height= 200)
+ Machine_FrontProfile();
+ }
+ }
+ translate([ rearcurve_strt_len,
+ 0,
+ rearcurve_z_slop ]){
+ translate([ 1,
+ 0,
+ 0
+ ]){
+ rotate([0,-90,0])rotate([0,0,-90]){
+ linear_extrude(height= rearcurve_strt_len + 1)
+ Machine_RearProfile();
+ }
+ }
+ translate([ 0,
+ 0,
+ rearcurve_double_inrad ]) {
+ intersection(){
+ rotate([90,0,0]){
+ rotate_extrude(convexity=10, $fn=32) {
+ rotate([0,0,90]) translate([ 0,
+ -rearcurve_double_inrad ]) {
+ Machine_RearProfile();
+ }
+ }
+ }
+ mirror([0,0,1])
+ translate([0,-75,0]) cube([150,150,150]);
+ }
+ }
+ }
+ }
+}
+
+module Machine(){ ////toplevel
+ Machine_Arm();
+ Machine_Curves();
+}
+