Define shared variables

This commit is contained in:
Matt McWilliams 2025-03-24 22:06:49 -04:00
parent b407b91fd6
commit 18bcf86777
1 changed files with 4 additions and 2 deletions

View File

@ -3,6 +3,8 @@ use <./common/common.scad>
PLATE_X = -6;
PLATE_Y = 25;
RAIL_SPACING_HALF_IN = 30;
HALF_IN_RAIL_D = 13;
module bolex_debug (pad = 0) {
cylinder(r = R(29) + pad, h = 10, center = true, $fn = 80);
@ -94,8 +96,8 @@ module base_plate (pos = [0, 0, 0], rot = [0, 0, 0], rails = "15mm") {
}
}
} else if (rails == "1/2in") {
translate([15, -50, 0]) rotate([90, 0, 0]) cylinder(r = R(13), h = 100, center = true, $fn = 50);
translate([-15, -50, 0]) rotate([90, 0, 0]) cylinder(r = R(13), h = 100, center = true, $fn = 50);
translate([RAIL_SPACING_HALF_IN / 2, -50, 0]) rotate([90, 0, 0]) cylinder(r = R(HALF_IN_RAIL_D), h = 100, center = true, $fn = 50);
translate([-RAIL_SPACING_HALF_IN / 2, -50, 0]) rotate([90, 0, 0]) cylinder(r = R(HALF_IN_RAIL_D), h = 100, center = true, $fn = 50);
}
}