### RodStart Source: https://github.com/rcolyer/threads-scad/blob/master/README.md Solid rod on the bottom, external threads on the top. ```APIDOC ## RodStart ### Description Solid rod on the bottom, external threads on the top. ### Parameters - **diameter** (float) - Required - The diameter of the rod. - **height** (float) - Required - The height of the solid rod portion. - **thread_len** (float) - Optional - The length of the external threads. Defaults to 0. - **thread_diam** (float) - Optional - The diameter of the external threads. Defaults to 0. - **thread_pitch** (float) - Optional - The pitch of the external threads. Defaults to 0. ``` -------------------------------- ### Create Metric Nut Source: https://github.com/rcolyer/threads-scad/blob/master/README.md Use this module to create a standard metric hex nut. ```openscad module MetricNut(diameter, thickness=0, tolerance=0.4) ``` -------------------------------- ### Create Rod with Internal Threads Source: https://github.com/rcolyer/threads-scad/blob/master/README.md Generates a rod with a solid base and internal threads on the top portion. This module flips around the x-axis after printing to pair with RodStart. ```openscad module RodEnd(diameter, height, thread_len=0, thread_diam=0, thread_pitch=0) ``` -------------------------------- ### Create Metric Wood Screw Source: https://github.com/rcolyer/threads-scad/blob/master/README.md Use this module to create a standard metric wood screw with a hex key drive. The length includes the head. ```openscad module MetricWoodScrew(diameter, length, tolerance=0.4) ``` -------------------------------- ### Create Metric Countersunk Bolt Source: https://github.com/rcolyer/threads-scad/blob/master/README.md Use this module to create a standard metric countersunk (flat) bolt with a hex key drive. The length includes the head. ```openscad module MetricCountersunkBolt(diameter, length, tolerance=0.4) ``` -------------------------------- ### Create Rod with External Threads Source: https://github.com/rcolyer/threads-scad/blob/master/README.md Generates a rod with a solid base and external threads on the top portion. ```openscad module RodStart(diameter, height, thread_len=0, thread_diam=0, thread_pitch=0) ``` -------------------------------- ### Create Metric Bolt Source: https://github.com/rcolyer/threads-scad/blob/master/README.md Use this module to create a standard metric bolt with a hex head and hex key drive. ```openscad module MetricBolt(diameter, length, tolerance=0.4) ``` -------------------------------- ### MetricWoodScrew Source: https://github.com/rcolyer/threads-scad/blob/master/README.md Creates a standard sized metric countersunk (flat) bolt with hex key drive. ```APIDOC ## MetricWoodScrew ### Description Create a standard sized metric countersunk (flat) bolt with hex key drive. In compliance with convention, the length for this includes the head. ### Parameters - **diameter** (float) - Required - The diameter of the screw. - **length** (float) - Required - The length of the screw (including head). - **tolerance** (float) - Optional - The tolerance for the screw. Defaults to 0.4. ``` -------------------------------- ### MetricNut Source: https://github.com/rcolyer/threads-scad/blob/master/README.md Creates a standard sized metric hex nut. ```APIDOC ## MetricNut ### Description Create a standard sized metric hex nut. ### Parameters - **diameter** (float) - Required - The nominal diameter of the nut. - **thickness** (float) - Optional - The thickness of the nut. Defaults to 0, indicating a standard thickness will be calculated. - **tolerance** (float) - Optional - The tolerance for the nut. Defaults to 0.4. ``` -------------------------------- ### Create Metric Washer Source: https://github.com/rcolyer/threads-scad/blob/master/README.md Use this module to create a washer sized for a given metric nominal thread diameter. ```openscad module MetricWasher(diameter) ``` -------------------------------- ### MetricCountersunkBolt Source: https://github.com/rcolyer/threads-scad/blob/master/README.md Creates a standard sized metric countersunk (flat) bolt with hex key drive. ```APIDOC ## MetricCountersunkBolt ### Description Create a standard sized metric countersunk (flat) bolt with hex key drive. In compliance with convention, the length for this includes the head. ### Parameters - **diameter** (float) - Required - The diameter of the bolt. - **length** (float) - Required - The length of the bolt (including head). - **tolerance** (float) - Optional - The tolerance for the bolt. Defaults to 0.4. ``` -------------------------------- ### Create External Screw Threads Source: https://github.com/rcolyer/threads-scad/blob/master/README.md Use this module to create a vertical rod with external threads. It defaults to metric standards. ```openscad module ScrewThread(outer_diam, height, pitch=0, tooth_angle=30, tolerance=0.4, tip_height=0, tooth_height=0, tip_min_fract=0) ``` -------------------------------- ### Create External Auger Threads Source: https://github.com/rcolyer/threads-scad/blob/master/README.md Use this module to create a vertical rod with external auger-style threads. ```openscad module AugerThread(outer_diam, inner_diam, height, pitch, tooth_angle=30, tolerance=0.4, tip_height=0, tip_min_fract=0) ``` -------------------------------- ### Create Rod Extender Source: https://github.com/rcolyer/threads-scad/blob/master/README.md Generates a rod with internal threads on the bottom and external threads on the top, suitable for extending threaded rods. ```openscad module RodExtender(diameter, height, thread_len=0, thread_diam=0, thread_pitch=0) ``` -------------------------------- ### MetricBolt Source: https://github.com/rcolyer/threads-scad/blob/master/README.md Creates a standard sized metric bolt with hex head and hex key. ```APIDOC ## MetricBolt ### Description Create a standard sized metric bolt with hex head and hex key. ### Parameters - **diameter** (float) - Required - The diameter of the bolt. - **length** (float) - Required - The length of the bolt. - **tolerance** (float) - Optional - The tolerance for the bolt. Defaults to 0.4. ``` -------------------------------- ### Create Metric Bolt Set Source: https://github.com/rcolyer/threads-scad/blob/master/README.md Produces a set of matching metric bolts, nuts, and washers for a specified diameter and length. ```openscad module MetricBoltSet(diameter, length, quantity=1) ``` -------------------------------- ### RodExtender Source: https://github.com/rcolyer/threads-scad/blob/master/README.md Internal threads on the bottom, external threads on the top. ```APIDOC ## RodExtender ### Description Internal threads on the bottom, external threads on the top. ### Parameters - **diameter** (float) - Required - The diameter of the extender. - **height** (float) - Required - The height of the extender. - **thread_len** (float) - Optional - The length of the threads. Defaults to 0. - **thread_diam** (float) - Optional - The diameter of the threads. Defaults to 0. - **thread_pitch** (float) - Optional - The pitch of the threads. Defaults to 0. ``` -------------------------------- ### Standard Metric Dimension Functions Source: https://github.com/rcolyer/threads-scad/blob/master/README.md Provides functions to retrieve standard metric values for a given diameter, including thread pitch, hex dimensions, nut thickness, and more. ```openscad ThreadPitch(diameter) ``` ```openscad HexAcrossFlats(diameter) ``` ```openscad HexAcrossCorners(diameter) ``` ```openscad HexDriveAcrossFlats(diameter) ``` ```openscad HexDriveAcrossCorners(diameter) ``` ```openscad CountersunkDriveAcrossFlats(diameter) ``` ```openscad CountersunkDriveAcrossCorners(diameter) ``` ```openscad NutThickness(diameter) ``` -------------------------------- ### Insert Countersunk Clearance Hole Source: https://github.com/rcolyer/threads-scad/blob/master/README.md Use this module to insert a clearance hole with a countersunk top into child objects. The countersink is on the bottom by default. ```openscad module CountersunkClearanceHole(diameter, height, position=[0,0,0], rotation=[0,0,0], sinkdiam=0, sinkangle=45, tolerance=0.4) ``` -------------------------------- ### MetricBoltSet Source: https://github.com/rcolyer/threads-scad/blob/master/README.md Produces a matching set of metric bolts, nuts, and washers. ```APIDOC ## MetricBoltSet ### Description Produces a matching set of metric bolts, nuts, and washers. ### Parameters - **diameter** (float) - Required - The nominal diameter for the bolt set. - **length** (float) - Required - The length of the bolts. - **quantity** (integer) - Optional - The number of sets to produce. Defaults to 1. ``` -------------------------------- ### CountersunkClearanceHole Source: https://github.com/rcolyer/threads-scad/blob/master/README.md Inserts a countersunk ClearanceHole in its children. ```APIDOC ## CountersunkClearanceHole ### Description Inserts a countersunk ClearanceHole in its children. The rotation vector is applied first, then the position translation, starting from a position upward from the z-axis at z=0. The countersunk side is on the bottom by default. ### Parameters - **diameter** (float) - Required - The diameter of the hole. - **height** (float) - Required - The height of the hole. - **position** (list[float]) - Optional - The position of the hole. Defaults to [0,0,0]. - **rotation** (list[float]) - Optional - The rotation of the hole. Defaults to [0,0,0]. - **sinkdiam** (float) - Optional - The diameter of the countersink. Defaults to 0. - **sinkangle** (float) - Optional - The angle of the countersink. Defaults to 45. - **tolerance** (float) - Optional - The tolerance for the hole. Defaults to 0.4. ``` -------------------------------- ### Insert Clearance Hole Source: https://github.com/rcolyer/threads-scad/blob/master/README.md Use this module to insert a simple clearance hole into child objects. The rotation is applied first, then the translation. ```openscad module ClearanceHole(diameter, height, position=[0,0,0], rotation=[0,0,0], tolerance=0.4) ``` -------------------------------- ### MetricWasher Source: https://github.com/rcolyer/threads-scad/blob/master/README.md Creates a convenient washer size for a metric nominal thread diameter. ```APIDOC ## MetricWasher ### Description Create a convenient washer size for a metric nominal thread diameter. ### Parameters - **diameter** (float) - Required - The nominal thread diameter for which to create a washer. ``` -------------------------------- ### Insert Phillips Tip Hole Source: https://github.com/rcolyer/threads-scad/blob/master/README.md Use this module to insert a Phillips-head screwdriver tip shaped hole into child objects. The rotation is applied first, then the translation. ```openscad module PhillipsTip(width=7, thickness=0, straightdepth=0, position=[0,0,0], rotation=[0,0,0]) ``` -------------------------------- ### ScrewThread Source: https://github.com/rcolyer/threads-scad/blob/master/README.md Creates a vertical rod with external metric threads at the origin. ```APIDOC ## ScrewThread ### Description Creates a vertical rod at the origin with external threads. It uses metric standards by default. ### Parameters - **outer_diam** (float) - Required - The outer diameter of the rod. - **height** (float) - Required - The height of the rod. - **pitch** (float) - Optional - The pitch of the thread. Defaults to 0, indicating a standard metric pitch will be calculated. - **tooth_angle** (float) - Optional - The angle of the thread teeth. Defaults to 30. - **tolerance** (float) - Optional - The tolerance for the thread. Defaults to 0.4. - **tip_height** (float) - Optional - The height of the thread tip. Defaults to 0. - **tip_min_fract** (float) - Optional - The minimum fraction of the tip height. Defaults to 0. - **tooth_height** (float) - Optional - The height of the thread tooth. Defaults to 0. ``` -------------------------------- ### RodEnd Source: https://github.com/rcolyer/threads-scad/blob/master/README.md Solid rod on the bottom, internal threads on the top. Flips around x-axis after printing to pair with RodStart. ```APIDOC ## RodEnd ### Description Solid rod on the bottom, internal threads on the top. Flips around x-axis after printing to pair with RodStart. ### Parameters - **diameter** (float) - Required - The diameter of the rod. - **height** (float) - Required - The height of the solid rod portion. - **thread_len** (float) - Optional - The length of the internal threads. Defaults to 0. - **thread_diam** (float) - Optional - The diameter of the internal threads. Defaults to 0. - **thread_pitch** (float) - Optional - The pitch of the internal threads. Defaults to 0. ``` -------------------------------- ### Create Closed Polyhedron from Points Source: https://github.com/rcolyer/threads-scad/blob/master/README.md Generates a closed polyhedron from an array of arrays of points, where each inner array traces a loop. Points must obey the right-hand rule for correct orientation. ```openscad module ClosePoints(pointarrays) ``` -------------------------------- ### AugerThread Source: https://github.com/rcolyer/threads-scad/blob/master/README.md Creates a vertical rod with external auger-style threads. ```APIDOC ## AugerThread ### Description Creates a vertical rod at the origin with external auger-style threads. ### Parameters - **outer_diam** (float) - Required - The outer diameter of the rod. - **inner_diam** (float) - Required - The inner diameter of the rod. - **height** (float) - Required - The height of the rod. - **pitch** (float) - Required - The pitch of the thread. - **tooth_angle** (float) - Optional - The angle of the thread teeth. Defaults to 30. - **tolerance** (float) - Optional - The tolerance for the thread. Defaults to 0.4. - **tip_height** (float) - Optional - The height of the thread tip. Defaults to 0. - **tip_min_fract** (float) - Optional - The minimum fraction of the tip height. Defaults to 0. ``` -------------------------------- ### Insert Recessed Clearance Hole Source: https://github.com/rcolyer/threads-scad/blob/master/README.md Use this module to insert a clearance hole with a recessed bolt head into child objects. Defaults are set for standard metric bolts. ```openscad module RecessedClearanceHole(diameter, height, position=[0,0,0], rotation=[0,0,0], recessed_diam=-1, recessed_height=-1, tolerance=0.4) ``` -------------------------------- ### Create Internal Screw Hole Source: https://github.com/rcolyer/threads-scad/blob/master/README.md Use this module to create a threaded hole in child objects. It defaults to metric standards. ```openscad module ScrewHole(outer_diam, height, position=[0,0,0], rotation=[0,0,0], pitch=0, tooth_angle=30, tolerance=0.4, tooth_height=0) ``` -------------------------------- ### ClearanceHole Source: https://github.com/rcolyer/threads-scad/blob/master/README.md Inserts a ClearanceHole in its children. ```APIDOC ## ClearanceHole ### Description Inserts a ClearanceHole in its children. The rotation vector is applied first, then the position translation, starting from a position upward from the z-axis at z=0. ### Parameters - **diameter** (float) - Required - The diameter of the hole. - **height** (float) - Required - The height of the hole. - **position** (list[float]) - Optional - The position of the hole. Defaults to [0,0,0]. - **rotation** (list[float]) - Optional - The rotation of the hole. Defaults to [0,0,0]. - **tolerance** (float) - Optional - The tolerance for the hole. Defaults to 0.4. ``` -------------------------------- ### ScrewHole Source: https://github.com/rcolyer/threads-scad/blob/master/README.md Creates a threaded hole in its children using metric standards by default. ```APIDOC ## ScrewHole ### Description Creates a threaded hole in its children using metric standards by default. ### Parameters - **outer_diam** (float) - Required - The outer diameter of the hole. - **height** (float) - Required - The height of the hole. - **position** (list[float]) - Optional - The position of the hole. Defaults to [0,0,0]. - **rotation** (list[float]) - Optional - The rotation of the hole. Defaults to [0,0,0]. - **pitch** (float) - Optional - The pitch of the thread. Defaults to 0, indicating a standard metric pitch will be calculated. - **tooth_angle** (float) - Optional - The angle of the thread teeth. Defaults to 30. - **tolerance** (float) - Optional - The tolerance for the thread. Defaults to 0.4. - **tooth_height** (float) - Optional - The height of the thread tooth. Defaults to 0. ``` -------------------------------- ### Create Internal Auger Hole Source: https://github.com/rcolyer/threads-scad/blob/master/README.md Use this module to create an auger-style threaded hole in child objects. ```openscad module AugerHole(outer_diam, inner_diam, height, pitch, position=[0,0,0], rotation=[0,0,0], tooth_angle=30, tolerance=0.4) ``` -------------------------------- ### PhillipsTip Source: https://github.com/rcolyer/threads-scad/blob/master/README.md Inserts a Phillips tip shaped hole into its children. ```APIDOC ## PhillipsTip ### Description Inserts a Phillips tip shaped hole into its children. The rotation vector is applied first, then the position translation, starting from a position upward from the z-axis at z=0. ### Parameters - **width** (float) - Optional - The width of the Phillips tip. Defaults to 7. - **thickness** (float) - Optional - The thickness of the Phillips tip. Defaults to 0. - **straightdepth** (float) - Optional - The straight depth of the Phillips tip. Defaults to 0. - **position** (list[float]) - Optional - The position of the hole. Defaults to [0,0,0]. - **rotation** (list[float]) - Optional - The rotation of the hole. Defaults to [0,0,0]. ``` -------------------------------- ### ClosePoints Source: https://github.com/rcolyer/threads-scad/blob/master/README.md Generates a closed polyhedron from an array of arrays of points. ```APIDOC ## ClosePoints ### Description Generates a closed polyhedron from an array of arrays of points, with each inner array tracing out one loop outlining the polyhedron. pointarrays should contain an array of N arrays each of size P outlining a closed manifold. The points must obey the right-hand rule. For example, looking down, the P points in the inner arrays are counter-clockwise in a loop, while the N point arrays increase in height. Points in each inner array do not need to be equal height, but they usually should not meet or cross the line segments from the adjacent points in the other arrays. (N>=2, P>=3) Core triangles: [j][i], [j+1][i], [j+1][(i+1)%P] [j][i], [j+1][(i+1)%P], [j][(i+1)%P] Then triangles are formed in a loop with the middle point of the first and last array. ### Parameters - **pointarrays** (array[array[list[float]]]) - Required - An array of point arrays defining the polyhedron. ``` -------------------------------- ### AugerHole Source: https://github.com/rcolyer/threads-scad/blob/master/README.md Creates an auger-style threaded hole in its children. ```APIDOC ## AugerHole ### Description Creates an auger-style threaded hole in its children. ### Parameters - **outer_diam** (float) - Required - The outer diameter of the hole. - **inner_diam** (float) - Required - The inner diameter of the hole. - **height** (float) - Required - The height of the hole. - **pitch** (float) - Required - The pitch of the thread. - **position** (list[float]) - Optional - The position of the hole. Defaults to [0,0,0]. - **rotation** (list[float]) - Optional - The rotation of the hole. Defaults to [0,0,0]. - **tooth_angle** (float) - Optional - The angle of the thread teeth. Defaults to 30. - **tolerance** (float) - Optional - The tolerance for the thread. Defaults to 0.4. ``` -------------------------------- ### RecessedClearanceHole Source: https://github.com/rcolyer/threads-scad/blob/master/README.md Inserts a ClearanceHole with a recessed bolt hole in its children. ```APIDOC ## RecessedClearanceHole ### Description Inserts a ClearanceHole with a recessed bolt hole in its children. The rotation vector is applied first, then the position translation, starting from a position upward from the z-axis at z=0. The default recessed parameters fit a standard metric bolt. ### Parameters - **diameter** (float) - Required - The diameter of the main hole. - **height** (float) - Required - The height of the main hole. - **position** (list[float]) - Optional - The position of the hole. Defaults to [0,0,0]. - **rotation** (list[float]) - Optional - The rotation of the hole. Defaults to [0,0,0]. - **recessed_diam** (float) - Optional - The diameter of the recessed hole. Defaults to -1. - **recessed_height** (float) - Optional - The height of the recessed hole. Defaults to -1. - **tolerance** (float) - Optional - The tolerance for the hole. Defaults to 0.4. ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.