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
bike-lipo-box: rotate again so glands are at front for viewing while printing
[reprap-play.git]
/
cable-splice-clamp.scad
diff --git
a/cable-splice-clamp.scad
b/cable-splice-clamp.scad
index fab44d483f7aa8af13f9367bc53469f4fce7655c..61781b5e7cb82afde9d341d2c3facd58ef42d446 100644
(file)
--- a/
cable-splice-clamp.scad
+++ b/
cable-splice-clamp.scad
@@
-13,7
+13,7
@@
alpha = 40; // degrees
mu = 1/4;
// wall thickness, and base width as fraction of cable size
mu = 1/4;
// wall thickness, and base width as fraction of cable size
-wall_r =
1
.5 / 6.5;
+wall_r =
2
.5 / 6.5;
base_r = 0.75;
// for cross-section calculations:
base_r = 0.75;
// for cross-section calculations:
@@
-54,16
+54,14
@@
y_B_r = -dy_OB_r;
x_T_r = sina;
y_T_r = -tana * sina;
x_T_r = sina;
y_T_r = -tana * sina;
-top_r = wall_r - (d_OC_r - 1);
-
wall_x_r = wall_r / tan(90-alpha);
wall_x_r = wall_r / tan(90-alpha);
-top =
top_r * r1
;
+top =
wall_r * r1 - (d_OC_r - 1) * r0
;
basew = base_r * rnom;
echo("dias", r0*2, r1*2, "ratio",r1/r0);
basew = base_r * rnom;
echo("dias", r0*2, r1*2, "ratio",r1/r0);
-module CrossSection(plus=0) {
+module CrossSection
Half
(plus=0) {
difference(){
polygon([[-0.1, y_T_r * r0],
[x_T_r * r0, y_T_r * r0],
difference(){
polygon([[-0.1, y_T_r * r0],
[x_T_r * r0, y_T_r * r0],
@@
-76,6
+74,13
@@
module CrossSection(plus=0) {
}
}
}
}
+module CrossSection(plus=0) {
+ for (m=[0,1]) {
+ mirror([m,0])
+ CrossSectionHalf(plus);
+ }
+}
+
module CrossSectionDemo(){ ////toplevel
color("black") CrossSection(2);
CrossSection();
module CrossSectionDemo(){ ////toplevel
color("black") CrossSection(2);
CrossSection();
@@
-121,6
+126,12
@@
module HalfClamp(){ ////toplevel
}
}
}
}
+module HalfClampPrint(){ ////toplevel
+ rotate([180,0,0])
+ HalfClamp();
+}
+
//CrossSection();
//CrossSectionDemo();
//CrossSection();
//CrossSectionDemo();
-HalfClamp();
+//HalfClamp();
+HalfClampPrint();