module RoundCorner_selector(ci, adj) {
ROUNDCORNER_VARS;
- echo("RCS",l_uvec,ctr);
- %union(){
- INREFFRAME(this_cnr, right_cnr) {
- cube(bigr*2 + adj, center=true);
- }
- }
intersection(){
union(){
INREFFRAME(ctr3,concat(lp1,[4])){
}
}
+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);
Machine_FrontProfile();
}
}
+
+ %translate([0, -machine_rear_to_front, 0])
+ mirror([1,0,0]) rotate([0,-90,0])rotate([0,0,-90])
+ linear_extrude(height= 200)
+ Machine_NewFrontProfile();
+
translate([ rearcurve_strt_len,
0,
rearcurve_z_slop ]){
cnr_posts[3] + [ 0, -cty ]
];
rcs = R_CNR(c,1);
+ rc2 = [c1bis,c2bis,c[1]];
difference(){
union(){
difference(){
RoundEdge(c1bis, c2bis);
}
Machine();
+ RoundCornerCut(rc2);
}
RoundCornerAdd(rcs);
- RoundCornerAdd([c1bis,c2bis,c[1]]);
+ RoundCornerAdd(rc2);
}
module FitTest_FrontCurve(){ ////toplevel
//Machine_Profile();
//Machine_NewRearProfile();
//Machine_NewRearCurve();
+//Machine_NewFrontProfile();
//Machine_Curves();
//Machine();
//FitTest();