Skip to content

Instantly share code, notes, and snippets.

@cromo
Created December 10, 2017 02:55
Show Gist options
  • Select an option

  • Save cromo/3943c315c1cb4202138487bd2a33a502 to your computer and use it in GitHub Desktop.

Select an option

Save cromo/3943c315c1cb4202138487bd2a33a502 to your computer and use it in GitHub Desktop.
$fn = 100;
// All measurements are in multiples of 1/16"
screw_hole_diameter = 4;
ridge_height = 1;
ridge_diameter = 8;
foot_height = 8;
foot_upper_diameter = 14;
foot_lower_diameter = 11;
foot_countersink_diameter = 7;
foot_countersink_depth = 7;
intersection_fudge_factor = 1;
// Scale from 1/16 inches to millimeters
scale([1.5875, 1.5875, 1.5875]) {
difference() {
union() {
// foot
cylinder(h = foot_height, d2 = foot_upper_diameter, d1 = foot_lower_diameter);
// upper ridge
translate([0, 0, foot_height])
cylinder(h = ridge_height, d = ridge_diameter);
}
translate([0, 0, -intersection_fudge_factor]) {
// screw hole
cylinder(h = ridge_height + foot_height + 2 * intersection_fudge_factor, d = screw_hole_diameter);
// screw countersink
cylinder(h = foot_countersink_depth + intersection_fudge_factor, d = foot_countersink_diameter);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment