adrianschlatter / threadlib

thread library for OpenSCAD

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Refactor nut to allow hex nut

amadeuspzs opened this issue · comments

Currently you can modify

cylinder(h=H, d=Douter, $fn=fn);
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?

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