From 0ca8d74caf3a5b974d1ba0fef20a80d97d0abdec Mon Sep 17 00:00:00 2001 From: Arne Durr Date: Mon, 1 Dec 2014 10:09:05 +0100 Subject: [PATCH] Fix for wrong left/right frame render fix for issue https://github.com/carlosgs/Cyclone-PCB-Factory/issues/27 --- Hardware/CYCLONE_2/Source_files/Cyclone.scad | 32 +++++++++----------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/Hardware/CYCLONE_2/Source_files/Cyclone.scad b/Hardware/CYCLONE_2/Source_files/Cyclone.scad index 2a1ea20..e01bdd6 100644 --- a/Hardware/CYCLONE_2/Source_files/Cyclone.scad +++ b/Hardware/CYCLONE_2/Source_files/Cyclone.scad @@ -189,26 +189,24 @@ render_2D_or_3D() { } - - // TRANSLATE REFERENCE POSITION to the RIGHT frame, Y smooth rod end + // TRANSLATE REFERENCE POSITION to the LEFT frame, Y smooth rod end translate([-axes_Ysmooth_separation/2,axes_Ysmooth_rodLen/2,axes_Yreference_height]) { - if(draw_references) %frame(); + if(draw_references) %frame(); - // Draw right Y smooth rod - rotate([0,0,180]) standard_rod(diam=axes_Ysmooth_rodD, length=axes_Ysmooth_rodLen, threaded=false, echoPart=true); - - Cyclone_X_rightFrame(); - - - // TRANSLATE REFERENCE POSITION to the LEFT frame, Y smooth rod end - translate([axes_Ysmooth_separation,0,0]) { - if(draw_references) %frame(); - - // Draw right Y smooth rod + // Draw left Y smooth rod rotate([0,0,180]) standard_rod(diam=axes_Ysmooth_rodD, length=axes_Ysmooth_rodLen, threaded=false, echoPart=true); - - Cyclone_X_leftFrame(); - } + + Cyclone_X_leftFrame(); + + // TRANSLATE REFERENCE POSITION to the RIGHT frame, Y smooth rod end + translate([axes_Ysmooth_separation,0,0]) { + if(draw_references) %frame(); + + // Draw right Y smooth rod + rotate([0,0,180]) standard_rod(diam=axes_Ysmooth_rodD, length=axes_Ysmooth_rodLen, threaded=false, echoPart=true); + + Cyclone_X_rightFrame(); + } // TRANSLATE REFERENCE POSITION to the right frame, X lower smooth rod end