Create a scad file for extra odds and ends for the JK

This commit is contained in:
mmcwilliams 2019-03-18 18:28:09 -04:00
parent 46da2e6541
commit 1d993b85d3
1 changed files with 17 additions and 0 deletions

17
scad/jk_extras.scad Normal file
View File

@ -0,0 +1,17 @@
include <common.scad>;
IN = 25.4;
/**
* Parametric measurement bar to attach to rails
**/
module measurement_bar (X = 20 * IN, Y = 16.4, Z = 3, BOLT = 4, BOLT_OFFSET = (3/8) * IN, PROJ_ZERO = 43) {
$fn = 50;
difference () {
rounded_cube([X, Y, Z], d = 5, center = true);
translate([(X / 2) - BOLT_OFFSET, 0, 0]) cylinder(r = BOLT/2, h = Z + 1, center = true);
translate([-(X / 2) + BOLT_OFFSET, 0, 0]) cylinder(r = BOLT/2, h = Z + 1, center = true);
translate([(X / 2) - PROJ_ZERO, -(Y / 2) + (5 / 2), 0]) cube([0.2, 5, Z + 1], center = true);
}
}
projection() measurement_bar();