//dividing head plates
diameter = 5.370;
height = .250;
centerbore = 1.752;
bolt = 2.370;
bolt_dia = .3225;
bolt_head_dia = .455;
bolt_head_depth = .158;
pin = 0.136;
$fn = 360;
cf = 25.4;
id = 3;
od = 5.25;
//tracks
// 1
tracks = [37, 39, 41, 43, 47, 49];
// 2
// tracks = [21, 23, 27, 29, 31, 33];
// 3
// tracks = [12, 15, 17, 19, 19, 20];
// 4
// tracks = [57, 67, 77, 87, 97];
// 5
// tracks = [53, 63, 73, 83, 93];
// 6
// tracks = [51, 61, 71, 81, 91];
// 7
// tracks = [48, 59, 69, 79, 89. 99];
main();
//index holes
module hole() {
translate([0, 0, -1]) {
cylinder(h = height * cf + 2, d = pin * cf);
}
}
//bolt holes (countersunk head)
module boltHoles () {
for (i = [0:2]) {
rotate([0, 0, (360/3)*i]) {
translate([(bolt/2)*cf, 0, -1]) {
union() {
translate([0, 0, (height - bolt_head_depth)*cf]) {
cylinder(h = (bolt_head_depth + .003)*cf,
d = bolt_head_dia*cf);
}
cylinder(h = height*cf+2, d = bolt_dia*cf);
}
}
}
}
}
//creates a single row around the blank
module pinHoles(index) {
spacing = (od/2 - id/2)/len(tracks);
for (j = [1:tracks[index]]) {
rotate([0, 0, (360/tracks[index])*j]) {
translate([(id/2 + (spacing*index))*cf, 0, 0]) {
hole();
}
}
}
}
module main() {
difference() {
cylinder(h = height*cf, d = diameter*cf);
translate([0,0,-1]) {
cylinder(h = height*cf + 2, d = centerbore*cf);
}
boltHoles();
for(i = [0:len(tracks)-1]) {
pinHoles(i);
}
}
}