### Vitamins - Example Module Calls Source: https://github.com/nophead/nopscadlib/blob/master/readme.md Examples of how to call the jack and post modules with specific parameters for Bill of Materials (BOM) entries. ```APIDOC ## Vitamins | Qty | Module call | | ---:|:---| | 1 | `post_4mm("red", 3)` | | 1 | `jack_4mm("blue", 3, "royalblue")` | | 1 | `jack_4mm_plastic("[0.2, 0.2, 0.2]", 3, [0.2, 0.2, 0.2])` | | 1 | `jack_4mm_shielded("brown", 3, "sienna")` | | 1 | `power_jack()` | ``` -------------------------------- ### Vitamins - Cable Strip Usage Examples Source: https://github.com/nophead/nopscadlib/blob/master/readme.md Examples demonstrating the quantity and module calls for specific cable strip configurations, along with their corresponding BOM entries. ```APIDOC ## Vitamins | Qty | Module call | | ---:|:---| | 3 | `bezier_cable_strip(20, 50, 150, 100, 10)` | | 3 | `cable_strip(20, 25, 100, 30)` | ``` -------------------------------- ### Parametric Part Wrapper Example Source: https://github.com/nophead/nopscadlib/blob/master/docs/usage.md This example shows how to create a wrapper module for a parametric part to ensure unique STL file names based on parameters. The framework then looks for a specific STL generation module. ```OpenSCAD module fan_guard_60_stl() fan_guard(fan60x15); ``` -------------------------------- ### Parametric Part Naming Example Source: https://github.com/nophead/nopscadlib/blob/master/docs/usage.md This example demonstrates how to use the 'name' parameter in a module call to assign a constant, use-case-specific name to the generated STL file, regardless of the part's dimensions. ```OpenSCAD bed_fan = fan80x38; module bed_fan_guard_stl() fan_guard(bed_fan, name = "bed_fan_guard"); ``` -------------------------------- ### Install Python Packages with Pip Source: https://github.com/nophead/nopscadlib/blob/master/docs/usage.md Install required Python modules using pip. Ensure you have Python 3.6+ and pip installed. ```bash pip install colorama pip install codespell pip install markdown ``` -------------------------------- ### Geared Stepper Motor Example Source: https://github.com/nophead/nopscadlib/blob/master/gallery/readme.md Demonstrates the use of the optional second argument for motor shaft angle in the geared_stepper() function. This example is part of the PT_camera project. ```OpenSCAD geared_stepper() ``` -------------------------------- ### Wire Link Example Usage with Sleeve Source: https://github.com/nophead/nopscadlib/blob/master/readme.md Example call for a wire link with specified dimensions, height, and a red sleeve. ```openscad wire_link(0.8, 7.62, h = 0.75, sleeve = [1.5, "red"]) ``` -------------------------------- ### Axial Diode Example Usage Source: https://github.com/nophead/nopscadlib/blob/master/readme.md Example calls for axial diodes with different types and values. ```openscad ax_diode(DO_41, "1N4007") ``` ```openscad ax_diode(DO_35, "1N4148") ``` -------------------------------- ### Vertical Wire Link Example Usage Source: https://github.com/nophead/nopscadlib/blob/master/readme.md Example call for a vertical wire link with specified diameter and height, where length is zero. ```openscad wire_link(0.8, 0, h = 5) ``` -------------------------------- ### Screw Module Calls Source: https://github.com/nophead/nopscadlib/blob/master/readme.md Examples of using the screw module with various screw types, sizes, and lengths. ```python screw(M4_cap_screw, 8) ``` ```python screw(M4_grub_screw, 5) ``` ```python screw(M6_grub_screw, 6.2) ``` ```python screw(M6_grub_screw, 9.5) ``` ```python screw(M8_cap_screw, 12) ``` -------------------------------- ### Axial Resistor Example Usage Source: https://github.com/nophead/nopscadlib/blob/master/readme.md Example calls for axial resistors with different types, values, and tolerances. ```openscad ax_res(res1_8, 1000) ``` ```openscad ax_res(res1_8, 2200, tol = 1) ``` ```openscad ax_res(res1_4, 39000, tol = 1) ``` ```openscad ax_res(res1_4, 47000) ``` ```openscad ax_res(res1_2, 8200) ``` ```openscad ax_res(res1_2, 8250, tol = 1) ``` -------------------------------- ### Washer Module Calls Source: https://github.com/nophead/nopscadlib/blob/master/readme.md Examples of calling the washer module with different washer sizes. ```python washer(M4_washer) ``` ```python washer(M8_washer) ``` -------------------------------- ### Run NopSCADlib Tests Source: https://github.com/nophead/nopscadlib/blob/master/docs/usage.md Execute tests from the command line to verify the installation. This also builds the readme catalog for GitHub and renders it to HTML for local preview. ```bash tests ``` -------------------------------- ### Example Usage of Nut Modules Source: https://github.com/nophead/nopscadlib/blob/master/readme.md Demonstrates the usage of various nut modules with different parameters like nyloc, brass, nylon, and dome options. ```openscad nut(M2_nut); nut(M2_nut, nyloc = true); nut(M2p5_nut); nut(M2p5_nut, nyloc = true); nut(M2p5_nut, nylon = true); sliding_t_nut(M3_hammer_nut); sliding_t_nut(M3_sliding_t_nut); nut(M3_nut); nut(M3_nut, brass = true); nut(M3_nut, dome = true); nut(M3_nut, nyloc = true); nut(M3nS_thin_nut); sliding_t_nut(M4_hammer_nut); sliding_t_nut(M4_sliding_t_nut); nut(M4_nut); nut(M4_nut, dome = true); nut(M4_nut, nyloc = true); nut(M4nS_thin_nut); sliding_t_nut(M5_sliding_t_nut); nut(M5_nut); nut(M5_nut, dome = true); nut(M5_nut, nyloc = true); nut(M5nS_thin_nut); sliding_t_nut(M6_sliding_t_nut); nut(M6_half_nut); nut(M6_nut); nut(M6_nut, dome = true); nut(M6_nut, nyloc = true); nut(M6nS_thin_nut); sliding_t_nut(M8_sliding_ball_t_nut); nut(M8_nut); nut(M8_nut, dome = true); nut(M8_nut, nyloc = true); nut(M8nS_thin_nut); washer(M6_washer); weld_nut(M4_weld_nut); weld_nut(M6_weld_nut); wingnut(M4_wingnut); ``` -------------------------------- ### Example Grub Screw Component Source: https://github.com/nophead/nopscadlib/blob/master/readme.md This snippet shows how to include an M3 grub screw of 6mm length in the Bill of Materials. ```OpenSCAD screw(M3_grub_screw, 6) ``` -------------------------------- ### Example Screw Component Source: https://github.com/nophead/nopscadlib/blob/master/readme.md This snippet shows how to include an M3 cap screw of 20mm length in the Bill of Materials. ```OpenSCAD screw(M3_cap_screw, 20) ``` -------------------------------- ### Example Belt Component Source: https://github.com/nophead/nopscadlib/blob/master/readme.md This snippet shows how to include a GT2 x 6mm belt in the Bill of Materials. The length of the belt is specified. ```OpenSCAD belt(GT2x6, [ ... ]) ``` -------------------------------- ### Wire Link Example Usage without Sleeve Source: https://github.com/nophead/nopscadlib/blob/master/readme.md Example call for a wire link with specified dimensions and height, without a sleeve. ```openscad wire_link(0.8, 10.16) ``` -------------------------------- ### Extrusion Corner Bracket Module Calls Source: https://github.com/nophead/nopscadlib/blob/master/readme.md Examples of using the extrusion_corner_bracket and extrusion_corner_bracket_3D modules for connecting extrusions. ```python extrusion_corner_bracket(E20_corner_bracket) ``` ```python extrusion_corner_bracket(E40_corner_bracket) ``` ```python extrusion_corner_bracket_3D(extrusion_corner_bracket_3D_2020) ``` ```python extrusion_corner_bracket_3D(extrusion_corner_bracket_3D_3030) ``` ```python extrusion_corner_bracket_3D(extrusion_corner_bracket_3D_4040) ``` -------------------------------- ### Clone NopSCADlib Repository Source: https://github.com/nophead/nopscadlib/blob/master/docs/usage.md Clone the NopSCADlib repository using Git to install it. This command should be run in the directory where you want to store the library. ```bash git clone https://github.com/nophead/NopSCADlib.git ``` -------------------------------- ### Extrusion Module Calls Source: https://github.com/nophead/nopscadlib/blob/master/readme.md Examples of calling the extrusion module with different profiles, lengths, and optional corner holes. ```python extrusion(E2020, 40, cornerHole = true) ``` ```python extrusion(E2020t, 20.5) ``` ```python extrusion(E2020t, 28) ``` ```python extrusion(E2020t, 39.5) ``` ```python extrusion(E2020t, 48) ``` ```python extrusion(E3030, 40, cornerHole = true) ``` ```python extrusion(E4040, 40, cornerHole = true) ``` ```python extrusion(E4040t, 27.4, cornerHole = true) ``` ```python extrusion(E4040t, 40, cornerHole = true) ``` ```python extrusion(E4040t, 60.4, cornerHole = true) ``` ```python extrusion(E4040t, 80, cornerHole = true) ``` -------------------------------- ### Core XY Wrapper Module Source: https://github.com/nophead/nopscadlib/blob/master/readme.md Use this module to draw both belts of a Core XY setup. It takes various parameters to define the system's geometry and appearance. ```OpenSCAD coreXY( type, size, pos, separation, x_gap = 0, plain_idler_offset = [0, 0], upper_drive_pulley_offset = [0, 0], lower_drive_pulley_offset = [0, 0], show_pulleys = false, left_lower = false, motor_back = false ) ``` -------------------------------- ### Sliding T-Nut Module Calls Source: https://github.com/nophead/nopscadlib/blob/master/readme.md Examples of calling the sliding_t_nut module for different nut types and sizes. ```python sliding_t_nut(M4_sliding_t_nut) ``` ```python sliding_t_nut(M8_sliding_ball_t_nut) ``` -------------------------------- ### Example Toothed Drive Pulley Component Source: https://github.com/nophead/nopscadlib/blob/master/readme.md This snippet shows how to include a GT2OB pulley with 20 teeth in the Bill of Materials. ```OpenSCAD pulley(GT2x20ob_pulley) ``` -------------------------------- ### Extrusion Inner Corner Bracket Module Calls Source: https://github.com/nophead/nopscadlib/blob/master/readme.md Examples of using the extrusion_inner_corner_bracket module for internal corner connections. ```python extrusion_inner_corner_bracket(E20_inner_corner_bracket) ``` ```python extrusion_inner_corner_bracket(E40_inner_corner_bracket) ``` -------------------------------- ### Example Toothed Pulley Component Source: https://github.com/nophead/nopscadlib/blob/master/readme.md This snippet shows how to include a GT2 idler pulley with 16 teeth in the Bill of Materials. ```OpenSCAD pulley(GT2x16_toothed_idler) ``` -------------------------------- ### Core XY Half Belt Module Source: https://github.com/nophead/nopscadlib/blob/master/readme.md Draws a single belt of a Core XY setup. This module is useful for configuring individual belt paths and includes options for flipping and motor placement. ```OpenSCAD coreXY_half( type, size, pos, separation_y = 0, x_gap = 0, plain_idler_offset = [0, 0], drive_pulley_offset = [0, 0], show_pulleys = false, lower_belt = false, hflip = false, motor_back = false ) ``` -------------------------------- ### Example Stepper Motor Component Source: https://github.com/nophead/nopscadlib/blob/master/readme.md This snippet shows how to include a NEMA17 stepper motor with a 40mm body and a 5x20mm shaft in the Bill of Materials. ```OpenSCAD NEMA(NEMA17_40) ``` -------------------------------- ### Rod End Bearing Module Call Source: https://github.com/nophead/nopscadlib/blob/master/readme.md Example of calling the Rod End Bearing module with specific parameters for a 5mm x 33mm bearing. ```SCAD Rod End Bearing(RE_m5_bearing, 33) ``` -------------------------------- ### Example Plain Idler Pulley Component Source: https://github.com/nophead/nopscadlib/blob/master/readme.md This snippet shows how to include a smooth GT2 idler pulley with 9.63mm diameter in the Bill of Materials. ```OpenSCAD pulley(GT2x16_plain_idler) ``` -------------------------------- ### knob_assembly Module Source: https://github.com/nophead/nopscadlib/blob/master/readme.md Creates an assembly view of the knob with the grub screw in place. ```APIDOC ## knob_assembly(type) explode(40, explode_children = true) ### Description Assembly of the knob with the grub screw in place, with an option to explode the view. ### Parameters - **type** (object) - Required - The type of knob to assemble. - **explode** (number) - Optional - The factor by which to explode the assembly. Defaults to 40. - **explode_children** (boolean) - Optional - Whether to explode child components. Defaults to true. ``` -------------------------------- ### Extrusion Corner Bracket Size Source: https://github.com/nophead/nopscadlib/blob/master/readme.md Gets the overall size of the bracket. ```APIDOC ## extrusion_corner_bracket_size(type) ### Description Size of bracket. ### Parameters #### Path Parameters - **type** (any) - Required - The type of extrusion bracket. ``` -------------------------------- ### Extrusion Corner Bracket Side Thickness Source: https://github.com/nophead/nopscadlib/blob/master/readme.md Gets the thickness of the side of the bracket. ```APIDOC ## extrusion_corner_bracket_side_thickness(type) ### Description Thickness of side of bracket. ### Parameters #### Path Parameters - **type** (any) - Required - The type of extrusion bracket. ``` -------------------------------- ### Extrusion Corner Bracket Base Thickness Source: https://github.com/nophead/nopscadlib/blob/master/readme.md Gets the thickness of the base of the bracket. ```APIDOC ## extrusion_corner_bracket_base_thickness(type) ### Description Thickness of base of bracket. ### Parameters #### Path Parameters - **type** (any) - Required - The type of extrusion bracket. ``` -------------------------------- ### Ziptie Module Call Source: https://github.com/nophead/nopscadlib/blob/master/readme.md Demonstrates how to call the ziptie module with different predefined types. ```OpenSCAD ziptie(small_ziptie) ziptie(ziptie_3p6mm) ziptie(ziptie_3mm) ``` -------------------------------- ### Download and Unzip NopSCADlib Source: https://github.com/nophead/nopscadlib/blob/master/docs/usage.md Alternatively, download and unzip the NopSCADlib archive if you prefer not to use Git. Ensure the unzipped folder is named NopSCADlib. ```bash https://github.com/nophead/NopSCADlib/archive/master.zip ``` -------------------------------- ### Extrusion Corner Bracket 3D Get Y Rotation Source: https://github.com/nophead/nopscadlib/blob/master/readme.md Helper function to rotate the Y beam. ```APIDOC ## extrusion_corner_bracket_3D_get_y_rot(type) ### Description Helper function to rotate the y beam. ### Parameters #### Path Parameters - **type** (any) - Required - The type of extrusion bracket. ``` -------------------------------- ### Extrusion Corner Bracket 3D Get Y Offset Source: https://github.com/nophead/nopscadlib/blob/master/readme.md Helper function to position the Y beam. ```APIDOC ## extrusion_corner_bracket_3D_get_y_offset(type) ### Description Helper function to position the y beam. ### Parameters #### Path Parameters - **type** (any) - Required - The type of extrusion bracket. ``` -------------------------------- ### Extrusion Corner Bracket Hole Offset Source: https://github.com/nophead/nopscadlib/blob/master/readme.md Gets the offset of the mounting holes from the corner. ```APIDOC ## extrusion_corner_bracket_hole_offset(type) ### Description Hole offset from corner. ### Parameters #### Path Parameters - **type** (any) - Required - The type of extrusion bracket. ``` -------------------------------- ### Extrusion Corner Bracket 3D Get X Rotation Source: https://github.com/nophead/nopscadlib/blob/master/readme.md Helper function to rotate the Y beam. ```APIDOC ## extrusion_corner_bracket_3D_get_x_rot(type) ### Description Helper function to rotate the y beam. ### Parameters #### Path Parameters - **type** (any) - Required - The type of extrusion bracket. ``` -------------------------------- ### Modules for Jack Sockets and Binding Posts Source: https://github.com/nophead/nopscadlib/blob/master/readme.md Modules for drawing different types of 4mm jack sockets and binding posts, with options for color and panel thickness. ```APIDOC ## Modules ### `jack_4mm(colour, thickness, display_colour = false)` Draw a 4mm jack socket with nut positioned for specified panel thickness ### `jack_4mm_plastic(colour, thickness, display_colour = false)` Draw a 4mm plastic jack socket with nut positioned for specified panel thickness ### `jack_4mm_shielded(colour, thickness, display_colour = false)` Draw a 4mm shielded jack ### `post_4mm(colour, thickness, display_colour = false)` Draw a 4mm binding post ### `post_4mm_hole(h = 100, poly = false)` Drill hole for 4mm binding post ### `power_jack(thickness)` Draw a power jack socket with nut positioned for specified panel thickness ``` -------------------------------- ### Extrusion Inner Corner Bracket Size Source: https://github.com/nophead/nopscadlib/blob/master/readme.md Gets the overall size of the inner corner bracket. ```APIDOC ## extrusion_inner_corner_bracket_size(type) ### Description Size of inner bracket. ### Parameters #### Path Parameters - **type** (any) - Required - The type of extrusion bracket. ``` -------------------------------- ### Extrusion Corner Bracket Default Extrusion Source: https://github.com/nophead/nopscadlib/blob/master/readme.md Gets the default extrusion type this bracket is designed for. ```APIDOC ## extrusion_corner_bracket_extrusion(type) ### Description Default extrusion this bracket is for. ### Parameters #### Path Parameters - **type** (any) - Required - The type of extrusion bracket. ``` -------------------------------- ### knob Constructor Source: https://github.com/nophead/nopscadlib/blob/master/readme.md Constructs a basic knob with specified dimensions and features. ```APIDOC ## knob(name = "knob", top_d = 12, bot_d = 15, height = 18, shaft_length, skirt = [20, 2], pointer = false, corner_r = 2, screw = M3_grub_screw, shaft_d, flat_d, flat_h, recess) ### Description Constructor for creating a parametric knob. ### Parameters - **name** (string) - Optional - Name for the STL maker. - **top_d** (number) - Optional - Diameter at the top of the knob. Defaults to 12. - **bot_d** (number) - Optional - Diameter at the bottom of the knob. Defaults to 15. - **height** (number) - Optional - Height of the knob. Defaults to 18. - **shaft_length** (number) - Required - Length of the shaft. - **skirt** (array) - Optional - Skirt dimensions [diameter, thickness]. Defaults to [20, 2]. - **pointer** (boolean) - Optional - Whether to include a pointer. Defaults to false. - **corner_r** (number) - Optional - Rounded top corner radius. Defaults to 2. - **screw** (string) - Optional - Grub screw type. Defaults to M3_grub_screw. - **shaft_d** (number) - Required - Shaft diameter. - **flat_d** (number) - Required - The shaft diameter at the flat. - **flat_h** (number) - Required - The length of the flat. - **recess** (object) - Optional - Recess dimensions for clearing nut and thread (diameter, nut height, thread height). ``` -------------------------------- ### pocket_handle Source: https://github.com/nophead/nopscadlib/blob/master/readme.md Constructs a pocket_handle property list with various customizable options. ```APIDOC ## pocket_handle ### Description Constructs a pocket_handle property list with customizable parameters for hand size, slant, screw type, panel thickness, wall thickness, and corner radius. ### Function Signature `pocket_handle(hand_size = [90, 40, 40], slant = 35, screw = M3_cs_cap_screw, panel_t = 3, wall = 4, rad = 4)` ### Parameters - **hand_size** (array, optional): Size of the hole for the fingers. Defaults to `[90, 40, 40]`. - **slant** (number, optional): Upward slant of the hand hole. Defaults to `35`. - **screw** (type, optional): Screw type. Defaults to `M3_cs_cap_screw`. - **panel_t** (number, optional): Thickness of the panel it is mounted in. Defaults to `3`. - **wall** (number, optional): Wall thickness. Defaults to `4`. - **rad** (number, optional): Minimum corner radius. Defaults to `4`. ``` -------------------------------- ### Extrusion Corner Bracket 3D Get X Offset Source: https://github.com/nophead/nopscadlib/blob/master/readme.md Helper function to position the X beam. ```APIDOC ## extrusion_corner_bracket_3D_get_x_offset(type) ### Description Helper function to position the x beam. ### Parameters #### Path Parameters - **type** (any) - Required - The type of extrusion bracket. ``` -------------------------------- ### Extrusion Inner Corner Bracket Extrusion Source: https://github.com/nophead/nopscadlib/blob/master/readme.md Gets the default extrusion type this inner bracket is designed for. ```APIDOC ## extrusion_inner_corner_bracket_extrusion(type) ### Description Default extrusion this bracket is for. ### Parameters #### Path Parameters - **type** (any) - Required - The type of extrusion bracket. ``` -------------------------------- ### Box Module Construction Source: https://github.com/nophead/nopscadlib/blob/master/readme.md Constructs a box using the box function with specified parameters. ```OpenSCAD box(screw, wall, sheets, top_sheet, base_sheet, size, feet = false, shelf_screw = undef, name = "box") ``` -------------------------------- ### Extrusion Corner Bracket 3D Outer Height Source: https://github.com/nophead/nopscadlib/blob/master/readme.md Gets the height of the cuboid for the 3D outer bracket. ```APIDOC ## extrusion_corner_bracket_3D_outer_height(type) ### Description The height of the cuboid. ### Parameters #### Path Parameters - **type** (any) - Required - The type of extrusion bracket. ``` -------------------------------- ### knob Module Source: https://github.com/nophead/nopscadlib/blob/master/readme.md Generates the STL file for a knob based on its type. ```APIDOC ## knob(type, supports = true) ### Description Generate the STL for a knob. ### Parameters - **type** (object) - Required - The type of knob to generate. - **supports** (boolean) - Optional - Whether to include support structures. Defaults to true. ``` -------------------------------- ### Extrusion Corner Bracket 3D Nut Screw Length Source: https://github.com/nophead/nopscadlib/blob/master/readme.md Gets the length of the nuts for the 3D bracket. ```APIDOC ## extrusion_corner_bracket_3D_nut_sx(type) ### Description The length of the nuts. ### Parameters #### Path Parameters - **type** (any) - Required - The type of extrusion bracket. ``` -------------------------------- ### Assemblies Source: https://github.com/nophead/nopscadlib/blob/master/readme.md List of available assemblies for the PSU shroud. ```APIDOC ## Assemblies | Qty | Name | | ---:|:--- | | 1 | PSU_shroud_PD_150_12_assembly | | 1 | PSU_shroud_S_250_48_assembly | | 1 | PSU_shroud_S_300_12_assembly | ``` -------------------------------- ### Define Handle Assembly with Fasteners Source: https://github.com/nophead/nopscadlib/blob/master/docs/usage.md This module defines a complete handle assembly including fasteners. It calls `handle_assembly()` and then adds screws and washers. This module does not use `assembly()`, so its fasteners are added to the parent assembly. ```openscad module handle_fastened_assembly(thickness) { //! Assembly with fasteners in place screw_length = screw_length(screw, thickness, 2, true, longer = true); handle_assembly(); handle_screw_positions() vflip() translate_z(thickness) screw_and_washer(screw, screw_length, true); } ``` -------------------------------- ### Extrusion Inner Corner Bracket Screw Offsets Source: https://github.com/nophead/nopscadlib/blob/master/readme.md Gets the screw offsets from the ends for the inner corner bracket. ```APIDOC ## extrusion_inner_corner_bracket_screw_offsets(type) ### Description Screw offsets from the ends. ### Parameters #### Path Parameters - **type** (any) - Required - The type of extrusion bracket. ``` -------------------------------- ### Extrusion Corner Bracket 3D Nut Total Width Source: https://github.com/nophead/nopscadlib/blob/master/readme.md Gets the total width of the nut for the 3D bracket. ```APIDOC ## extrusion_corner_bracket_3D_nut_ty1(type) ### Description The total width of the nut. ### Parameters #### Path Parameters - **type** (any) - Required - The type of extrusion bracket. ``` -------------------------------- ### Draw a Belt Path with NopSCADLib Source: https://github.com/nophead/nopscadlib/blob/master/readme.md Use the `belt` module to draw a timing belt path. Specify the belt type, a list of points defining the path, and optional colors. The path is a closed loop by default. ```openscad belt(type, points, belt_colour = grey(20), tooth_colour = grey(50), open = false, twist = undef, auto_twist = false, start_twist = false) ``` -------------------------------- ### Skeleton Project Structure Source: https://github.com/nophead/nopscadlib/blob/master/docs/usage.md Defines the basic structure of a NopSCADlib project, including project description, global definitions, and library includes. ```OpenSCAD //! Project description in Markdown format before the first include. $pp1_colour = "grey"; // Override any global defaults here if required, see NopSCADlib/global_defs.scad. include // Includes all the vitamins and utilities in NopSCADlib but not the printed parts. ... //! Assembly instructions in Markdown format in front of each module that makes an assembly. module main_assembly() assembly("main") { ... } if($preview) main_assembly(); ``` -------------------------------- ### Extrusion Corner Bracket 3D Nut Thickness Source: https://github.com/nophead/nopscadlib/blob/master/readme.md Gets the thickness of the top part of the nut for the 3D bracket. ```APIDOC ## extrusion_corner_bracket_3D_nut_thickness(type) ### Description The thickness of the top part of the nut. ### Parameters #### Path Parameters - **type** (any) - Required - The type of extrusion bracket. ``` -------------------------------- ### Extrusion Corner Bracket 3D Nut Nyloc Thickness Source: https://github.com/nophead/nopscadlib/blob/master/readme.md Gets the total thickness of the nut for the 3D bracket. ```APIDOC ## extrusion_corner_bracket_3D_nut_nyloc_thickness(type) ### Description The total thickness of the nut. ### Parameters #### Path Parameters - **type** (any) - Required - The type of extrusion bracket. ``` -------------------------------- ### knob_for_pot Constructor Source: https://github.com/nophead/nopscadlib/blob/master/readme.md Constructs a knob specifically designed to fit a given potentiometer. ```APIDOC ## knob_for_pot(pot, thickness, z = 1, washer = true, top_d = 12, bot_d = 15, height = 0, shaft_length = undef, skirt = [20, 2], pointer = false, corner_r = 2, screw = M3_grub_screw) ### Description Construct a knob to fit a specified potentiometer, including options for shaft clearance. ### Parameters - **pot** (object) - Required - The potentiometer object. - **thickness** (number) - Required - Thickness parameter for the pot. - **z** (number) - Optional - Z-axis offset. Defaults to 1. - **washer** (boolean) - Optional - Whether to account for a washer. Defaults to true. - **top_d** (number) - Optional - Diameter at the top of the knob. Defaults to 12. - **bot_d** (number) - Optional - Diameter at the bottom of the knob. Defaults to 15. - **height** (number) - Optional - Height of the knob. Defaults to 0. - **shaft_length** (number) - Optional - Length of the shaft. Defaults to undefined. - **skirt** (array) - Optional - Skirt dimensions [diameter, thickness]. Defaults to [20, 2]. - **pointer** (boolean) - Optional - Whether to include a pointer. Defaults to false. - **corner_r** (number) - Optional - Rounded top corner radius. Defaults to 2. - **screw** (string) - Optional - Grub screw type. Defaults to M3_grub_screw. ```