adrianschlatter / threadlib

thread library for OpenSCAD
BSD 3-Clause "New" or "Revised" License
362 stars 34 forks source link

Refactor nut to allow hex nut #61

Closed amadeuspzs closed 1 year ago

amadeuspzs commented 2 years ago

Currently you can modify https://github.com/adrianschlatter/threadlib/blob/d8c8384988c247c764ad47c504e5bbee5d55fc23/threadlib.scad#L60 to set $fn=6 to obtain a hex nut:

image

However, you don't want to pass fn=6 into the nut module otherwise the resolution of the thread will be affected.

Can we refactor the nut module to allow for hex nuts?

adrianschlatter commented 2 years ago

How would you want to refactor nut(...)?