
If the screw fits too loose in the nut you can specify a negative correction value (try -0.1 for example). usrclearance: (optional) If the screw fits too tight on the nut you can specify a positive correction value (try 0.1 for example). This function uses standard clearance for adjustment between screw and nut depending on the diameter specified. The generated thread can be subtracted from any element of your design using the operator "difference()", thus obtaining a thread where a screw will fit. This function uses standard pitch values depending on the diameter specified. Example: thread_for_screw(diameter=10, length=30) thread_for_nut(diameter, length, usrclearance=0) Generates a nut thread of the diameter indicated by the "diameter" parameter and of the length indicated by "length". AVAILABLE FUNCTIONS: BASIC FUNCTIONS (USING PREDEFINED PARAMETERS): thread_for_screw(diameter, length) Generates a screw thread of the diameter indicated by the "diameter" parameter and of the length indicated by "length". scad file You can also open it in customizer to obtain a screw and / or nut thread of the desired size that you can include in your own designs. Included: Library file named threads-library-by-cuiso-v1.scad A file with examples of use named examples.scad For use this library you can put the file threads-library-by-cuiso-v1.scad in the same directory of your proyect and put the line use in your own. However, they have not been exhaustive tests.

Some tests have been done using screws and nuts printed with this library in combination with screws and nuts of metal with acceptable results.

Openscad screw threads iso#
Shape of the threads are similar (but not equal) to ISO METRIC threads. Diamaters tested between 3mm and 10mm, but you can use any diameter of your choice. Except for smaller diameter threads layers greater than 0.1 should work well. This library is focused to provide simple functions with preset parameters by default, and not to be too demanding in CPU consumption neither in previsualizacion nor in rendering This library has been tested printing on PLA with 0.1 layer. This is an OpenSCAD library to include threads for screws and nuts in your own designs.
