Use a variable

This commit is contained in:
Matt McWilliams 2023-01-02 13:53:41 -05:00
parent ef0d246901
commit 0829ec9081
1 changed files with 4 additions and 3 deletions

View File

@ -20,13 +20,14 @@ module cmount_male(len = 4) {
module bellows_camera_board () {
H = 6;
INNER_D = 39;
difference () {
cube([60, 60, H], center = true);
//center
cylinder(r = 39 / 2, h = H + 1, center = true, $fn = 360);
cylinder(r = INNER_D / 2, h = H + 1, center = true, $fn = 360);
//center bevels
translate([0, 0, 2.25]) cylinder(r1 = 36 / 2, r2 = 40 / 2, h = 1.5, center = true, $fn = 360);
translate([0, 0, -2.25]) cylinder(r1 = 40 / 2, r2 = 36 / 2, h = 1.5, center = true, $fn = 360);
translate([0, 0, 2.25]) cylinder(r1 = (INNER_D - 2) / 2, r2 = (INNER_D + 2) / 2, h = 1.5, center = true, $fn = 360);
translate([0, 0, -2.25]) cylinder(r1 = (INNER_D + 2) / 2, r2 = (INNER_D - 2) / 2, h = 1.5, center = true, $fn = 360);
//corners
for (i = [0 : 3]) {
rotate([0, 0, i * (360 / 4) + 45 ]) translate([43.5, 0, 0]) cube([11, 11, H + 1], center = true);