chiark
/
gitweb
/
~ianmdlvl
/
reprap-play.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
scaffold-clamp-cleat: try making version for horiz print, for revert
[reprap-play.git]
/
scaffold-clamp-common.scad
diff --git
a/scaffold-clamp-common.scad
b/scaffold-clamp-common.scad
index 4e9f36759e267902306214f23f3b5aca9536a674..251bbb4a591df048fd09ad3ea60eac8aadc9ba2c 100644
(file)
--- a/
scaffold-clamp-common.scad
+++ b/
scaffold-clamp-common.scad
@@
-53,6
+53,8
@@
pin_dia = th;
pin_hole_dia = pin_dia/2;
pin_tail = pin_hole_dia + pin_head_th + hinge_z_gap*3;
pin_hole_dia = pin_dia/2;
pin_tail = pin_hole_dia + pin_head_th + hinge_z_gap*3;
+$print_horiz = false;
+
// ========== calculated ==========
TAU = PI*2;
// ========== calculated ==========
TAU = PI*2;
@@
-97,12
+99,13
@@
vhook_outer_dia = vhook_inside + vhook_th*2;
cleat_horn_tl = cleat_horn_l + cleat_stem_l/2;
cleat_horn_tl = cleat_horn_l + cleat_stem_l/2;
-vcleat_dz = max(0,
- cleat_horn_tl
- + cleat_horn_d_min[0]/2
- - cleat_horn_d_min[0]/2 * cleat_overlap
- - total_z/2
- );
+vcleat_dz =
+ $print_horiz ? 0 : max(0,
+ cleat_horn_tl
+ + cleat_horn_d_min[0]/2
+ - cleat_horn_d_min[0]/2 * cleat_overlap
+ - total_z/2
+ );
// calculated - hhook
// calculated - hhook
@@
-329,6
+332,7
@@
module VCleat(){
circle(r = tube_dia/2 + 0.1);
}
}
circle(r = tube_dia/2 + 0.1);
}
}
+ if (!$print_horiz)
translate([0,0, total_z * 0.5])
cube(center=true,
(main_r + cleat_stem_l)*4 * [1,1,0] +
translate([0,0, total_z * 0.5])
cube(center=true,
(main_r + cleat_stem_l)*4 * [1,1,0] +
@@
-336,11
+340,17
@@
module VCleat(){
}
}
}
}
-module VCleatA(){
////toplevel
+module VCleatA(){
DummyA();
VCleat();
}
DummyA();
VCleat();
}
+module VCleatAPrint(){ ////toplevel
+ rotate($print_horiz ? [90,0,0] : [0,0,0]) {
+ VCleatA();
+ }
+}
+
// ---------- hhook ----------
module HHookHookPlan(){
// ---------- hhook ----------
module HHookHookPlan(){