<p>This is just a remix of Trevor Moseley's <i>"OpenSCAD ISO metric thread library / functions (updated)"</i>, found here: <a href="http://www.thingiverse.com/thing:311031" target="_blank" rel="nofollow">http://www.thingiverse.com/thing:311031</a>.<br></p><p>I just tweaked it to work on Ultimaker 2 and Cura, as Trevor's version seemed to create spaces between model segments and the results would not print correctly. Also, Trevor's version did not seem to match actual steel nuts and bolts.</p><p>I calibrated my testing against an M6 nut and several M6 bolts, plus M6 threaded rod. I did not test other sizes. YMMV.<br></p>All credit goes to Trevor for his excellent library. It may or may not be exactly metric standard but it (now) is compatible with steel threading and the only OpenSCAD metric library that actually works for me. :)<br><br>I have also kept the same licence as it is almost all his code anyway.<br><br>(Nuts and bolt ThreadTest example, with an extra cylinder for a smooth shaft provided courtesy of DonMilne (<a title="Link: http://umforum.ultimaker.com/index.php?/user/33340-donmilne/" href="http://umforum.ultimaker.com/index.php?/user/33340-donmilne/">http://umforum.ultimaker.com/index.php?/user/33340-donmilne/</a>).
Creative Commons Public Domain Dedication