2015-07-28 17:18:42 +00:00
|
|
|
time=0;
|
2015-07-15 19:41:01 +00:00
|
|
|
module core (outerWidth) {
|
2015-07-15 19:34:52 +00:00
|
|
|
coreH = 16;
|
2015-07-15 19:41:01 +00:00
|
|
|
innerWidth = 15.3;
|
|
|
|
outerWidth = outerWidth / 2;
|
|
|
|
$fn = 100;
|
2015-07-15 19:34:52 +00:00
|
|
|
|
2015-07-28 17:18:42 +00:00
|
|
|
module cyl (R, pad = 0) {
|
|
|
|
cylinder(r = R, h = coreH + pad, center = true);
|
2015-07-15 19:34:52 +00:00
|
|
|
}
|
|
|
|
|
2015-07-28 17:18:42 +00:00
|
|
|
module inner_core_shape (coreR, trans, cubeW, cubeL, pad = 0) {
|
2015-07-15 19:34:52 +00:00
|
|
|
union () {
|
2015-07-28 17:18:42 +00:00
|
|
|
cyl(coreR, pad);
|
2015-07-15 19:34:52 +00:00
|
|
|
translate([trans, 0, 0]) {
|
2015-07-28 17:18:42 +00:00
|
|
|
cube([cubeW, cubeL, coreH + pad], center = true);
|
2015-07-15 19:34:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module inner_core () {
|
|
|
|
difference () {
|
2015-07-15 19:41:01 +00:00
|
|
|
inner_core_shape(innerWidth, innerWidth + .5, 6, 7);
|
2015-07-28 17:18:42 +00:00
|
|
|
inner_core_shape(innerWidth - 2, innerWidth - .5, 4, 4, 2);
|
2015-07-15 19:34:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
module clip () {
|
2015-07-15 19:41:01 +00:00
|
|
|
translate([outerWidth - 2, 0, 0]) {
|
2015-07-15 19:34:52 +00:00
|
|
|
rotate(45, [0, 0, 1]){
|
|
|
|
cube([6, 1, coreH], center = true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module outer_clip () {
|
2015-07-15 19:41:01 +00:00
|
|
|
translate([outerWidth - 2, 0, 0]) {
|
2015-07-15 19:34:52 +00:00
|
|
|
difference() {
|
|
|
|
rotate(45, [0, 0, 1]){
|
|
|
|
cube([8, 4, coreH], center = true);
|
|
|
|
}
|
|
|
|
translate([3.9, 0, 0]) {
|
2015-07-28 17:18:42 +00:00
|
|
|
cube([6, 8, coreH + 1], center = true);
|
2015-07-15 19:34:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module outer_core () {
|
|
|
|
difference () {
|
|
|
|
union () {
|
|
|
|
difference () {
|
2015-07-15 19:41:01 +00:00
|
|
|
cyl(outerWidth);
|
2015-07-28 17:18:42 +00:00
|
|
|
cyl(outerWidth - 2, 1);
|
2015-07-15 19:34:52 +00:00
|
|
|
}
|
|
|
|
outer_clip();
|
|
|
|
}
|
|
|
|
clip();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module supports (x) {
|
|
|
|
for (i = [0 : x]) {
|
|
|
|
rotate ([0, 0, i * 360 / (x + 1)]) {
|
|
|
|
if (i == 0) {
|
2015-07-15 19:41:01 +00:00
|
|
|
translate ([innerWidth + ((outerWidth - innerWidth) / 2) - 1, 0, 0]) {
|
|
|
|
cube([outerWidth - innerWidth - 5.7, 2, coreH] ,center = true);
|
2015-07-15 19:34:52 +00:00
|
|
|
}
|
|
|
|
} else {
|
2015-07-15 19:41:01 +00:00
|
|
|
translate ([innerWidth + ((outerWidth - innerWidth) / 2) - 1, 0, 0]) {
|
|
|
|
cube([outerWidth - innerWidth - 1, 2, coreH] ,center = true);
|
2015-07-15 19:34:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
union () {
|
|
|
|
inner_core();
|
|
|
|
outer_core();
|
|
|
|
supports(6);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-07-16 12:13:37 +00:00
|
|
|
rotate([0,0, time]) core(50);
|