diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2024-11-01 17:02:58 +0100 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2024-11-01 17:02:58 +0100 |
commit | 1092211601c817bed81766ef3246bf52755f6331 (patch) | |
tree | ab3e218e98caa911cc72ee796b56c348d52e271a /dip.scad | |
parent | 0bf33005101855c7617c47ecf66d136fea724e51 (diff) | |
download | oscad_gridfinity-main.tar.gz |
add dip storage binmain
Diffstat (limited to 'dip.scad')
-rw-r--r-- | dip.scad | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/dip.scad b/dip.scad new file mode 100644 index 0000000..4cd7206 --- /dev/null +++ b/dip.scad @@ -0,0 +1,30 @@ +use <gridfinity.scad> + +magnets = false; + +ux = 2; +uy = 1; +uz = 2; + +pin_length = 3; +pin_spacing = 2.54; + +pin_hole_percent = 0.8; + +function hc_max(m) = floor( m / pin_spacing ); + +module pins_negative(cnt_x, cnt_y) { + for (ix = [0:cnt_x]) { + for (iy = [0 : cnt_y]) { + translate([ pin_spacing*ix + pin_spacing*(1-pin_hole_percent)*0.5, + pin_spacing*iy + pin_spacing*(1-pin_hole_percent)*0.5 ]) + cube([pin_spacing*pin_hole_percent, pin_spacing*pin_hole_percent, pin_length]); + } + } +} + +difference() { + gridfinity(ux, uy, uz, lip=true, magnets=magnets, fill=false, bottom_height=pin_length); + translate(gf_inner_origin()) translate(gf_top_vec(0)) + pins_negative(hc_max(gf_inner(ux)),hc_max(gf_inner(uy))); +} |