m4_dnl $5=kind(kindargs)
m4_dnl profile(profileargsargs);
m4_define(`Box_Part',`
- translate([$1,$2])
- rotate([0,0, $3])
- mirror([$4, 0,0])
+ translate([($1),($2)])
+ rotate([0,0,($3)])
+ mirror([($4),0,0])
BoxPart_Extrude_$5') m4_dnl
boxpart_d = 0.01;
linear_extrude(height= boxpart_d + ($1))
')
+m4_dnl BoxPart_Extrude_Arc(outer_radius, swept_angle)
+m4_dnl arc starting at transl_x, transl_y, moving towards positive
+m4_dnl y at first and then bending towards positive x, until
+m4_dnl swept_angle is reached
+m4_define(`BoxPart_Extrude_Arc',`
+ translate([+($1),0,0])
+ rotate_extrude(angle=($2), convexity=10, $fs=1, $fn=36)
+ translate([-($1),0,0])
+')
+
ts_xbox_lin = ts_xbox - ts_cnrrad*2;
ts_ybox_lin = ts_ybox - ts_cnrrad*2;