module railRect(height) {
    cube([12.7, 7.4, height]);
}
module railSlot(height) {
    translate([1.85, 1.12, -1]) cube([2.64, 5.16, height+2]);
    translate([0, 2.2, -1]) cube([5.77, 3, height+2]);
}

supportOffset = [9,3.85];

module railSupportCavity(height) {
    translate(supportOffset) cylinder(r=2.25, h=height, $fn=32);
}

module railWithHoles(height) {
    difference(){
        railRect(height);
        railSlot(height);
        railSupportCavity(height);
    }
}


module railSet(height) {
    railWithHoles(height);

    translate([0,122.5]) {
        railWithHoles(height);
    }
}
module railRectSet(height, scale=1) {
    scale(scale) railRect(height);

    translate([0,122.5]) {
        scale(scale) railRect(height);
    }
}

module railSupportSet(height) {
    railSupportCavity(height);

    translate([0,122.5]) {
        railSupportCavity(height);
    }
}


module rodHole() {
    translate([0,0,-5]) cylinder(r=2.25, h=20, $fn=24);
}



