### Create Screws and Nuts with Threads Source: https://github.com/johk/nutsnbolts/blob/master/README.md Includes the 'cyl_head_bolt.scad' library to create screws and nuts. Specify 'thread="modeled"' to generate visible threads, which can be slow. Otherwise, the outer/inner diameter is used. ```openscad include ; screw("M20x100", thread="modeled"); // screw M20x100 with thread nut("M20", thread="modeled"); // corresponding nut with thread screw("M3x12"); // screw M3x12 ``` -------------------------------- ### Create a Hole and Nutcatch Source: https://github.com/johk/nutsnbolts/blob/master/README.md Demonstrates creating a difference between a cube and various hole and nutcatch features. Use 'nutcatch_parallel', 'hole_through', and 'nutcatch_sidecut' for different hole and catch configurations. ```openscad difference() { translate([-15, -15, 0]) cube([80, 30, 50]); rotate([180,0,0]) nutcatch_parallel("M5", clh=0.1); translate([0, 0, 50]) hole_through(name="M5", l=50+5, cld=0.1, h=10, hcld=0.4); translate([55, 0, 9]) nutcatch_sidecut("M8", l=100, clk=0.1, clh=0.1, clsl=0.1); } ``` -------------------------------- ### Apply Materials and Colors to Nuts Source: https://github.com/johk/nutsnbolts/blob/master/README.md Includes the 'materials.scad' library to color parts and document materials. The material number is descriptive and not functionally used by the library. Defaults are provided for common materials. ```openscad include ; // this allows you to write stuff like this: stainless(no="1.4301") nut("M3"); // which colors the parts in the corresponding color and documents the // intended material. The material number isn't used for anything and can be // skipped. Sensible defaults are set for stainless/steel/iron. ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.