Last active
October 23, 2016 14:31
-
-
Save Stemer114/407c6a91e005120f56a5d47b98209631 to your computer and use it in GitHub Desktop.
nut traps metric (predefined, no params necessary)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//metric nut traps (M3 .. M4) | |
//see https://gist.github.com/Stemer114 | |
// you can use the param functions for e.g. translation ops | |
// (access to height, thickness etc.) | |
function nut_trap_eps() = 0.1; //epsilon environment for non-manifold differences | |
function nut_trap_m3_w() = 5.5; //M3 wrench size | |
function nut_trap_m3_h() = 3; //M3 nut thickness | |
function nut_trap_m3nyloc_h() = 4.1; //M3 nyloc nut thickness | |
function nut_trap_m4_w() = 7; //M4 .. (and so on) | |
function nut_trap_m4_h() = 3.1; | |
function nut_trap_m4nyloc_h() = 4.8; | |
//metric nut traps (ready to use in code without further params) | |
module nut_trap_m3() { nut_trap( w=nut_trap_m3_w(), h=nut_trap_m3_h() + nut_trap_eps() ); } | |
module nut_trap_m3nyloc() { nut_trap( w=nut_trap_m3_w(), h=nut_trap_m3nyloc_h() + nut_trap_eps() ); } | |
module nut_trap_m4() { nut_trap( w=nut_trap_m4_w(), h=nut_trap_m4_h() + nut_trap_eps() ); } | |
module nut_trap_m4nyloc() { nut_trap( w=nut_trap_m4_w(), h=nut_trap_m4nyloc_h() + nut_trap_eps() ); } | |
//generic nut trap (used by above) | |
module nut_trap() { cylinder(r = w / 2 / cos(180 / 6) + 0.05, h=h, $fn=6); } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment