### Translate and Create a Cube Source: https://github.com/cantareus/stemfie_openscad/blob/main/docs/stemfie.scad.md Demonstrates positioning a cube using block unit translation. This example places a cube at [3 * BU, 0, 0]. ```openscad include BU_TK(3, 0 , 0) BU_cube(); ``` -------------------------------- ### Create Tab Connector Source: https://github.com/cantareus/stemfie_openscad/blob/main/docs/stemfie_electrics.scad.md Generates tabs for connecting STEMFIE half blocks. The example shows creating tabs for 1 to 4 block units wide objects. ```openscad include for(i=[1:4]) BU_Tx(i - 1) tab_connector(i); ``` -------------------------------- ### Create a Beveled Cube with Custom Size Source: https://github.com/cantareus/stemfie_openscad/blob/main/docs/stemfie.scad.md Creates a beveled cube with specified dimensions in block units. Example shows a 3x1x1 cube. ```openscad include BU_cube([3,1,1]); ``` -------------------------------- ### Create Terminal Cutout Source: https://github.com/cantareus/stemfie_openscad/blob/main/docs/stemfie_electrics.scad.md Generates a cutout for a banana terminal. The second example demonstrates using `difference()` to create a part with the terminal cutout. ```openscad include terminal_cutout(); ``` ```openscad include difference() { BU_cube([2,1,1]); BU_Tx(1) Ry(90) Rz(90) terminal_cutout(); Tz(1.5 * BU) cube(3 * BU, center = true); } ``` -------------------------------- ### Create Tab Connector Cutout Source: https://github.com/cantareus/stemfie_openscad/blob/main/docs/stemfie_electrics.scad.md Generates a tab cutout for connecting STEMFIE half blocks. The example shows creating a cutout within a cube. ```openscad include difference() { BU_cube([1, 1, 1]); tab_connector_cutout(length = 1, C = true); } ``` -------------------------------- ### Create Yellow Gearbox Motor Case Source: https://github.com/cantareus/stemfie_openscad/blob/main/docs/stemfie_electrics.scad.md Generates a motor case for toy yellow gearboxes. Use `top_half = true` for the top part. Example shows printing top and bottom side-by-side. ```openscad include for(i = [0,1]) Tx((3 * BU + 1) * (1 - 2 * i) / 2) Ry(180 * i) motor_case_yellow_gearbox(top_half = i == 1); ``` -------------------------------- ### Create a Standard Stemfie Brace Source: https://github.com/cantareus/stemfie_openscad/blob/main/docs/stemfie.scad.md Use the brace() module to create a standard brace. Specify the size and optionally the height and whether to include holes. ```OpenSCAD include brace(3); ``` -------------------------------- ### Create a Double Thickness 'X' Brace using brace_cross() Source: https://github.com/cantareus/stemfie_openscad/blob/main/docs/stemfie.scad.md Use the brace_cross() module with an array of four lengths and a specified height to create a double thickness 'X' brace. This allows for creating complex intersecting structures. ```OpenSCAD include brace_cross([1, 1, 1, 1], 0.5); ``` -------------------------------- ### Create a Nut Blank Source: https://github.com/cantareus/stemfie_openscad/blob/main/docs/stemfie.scad.md Generates a nut template with a solid interior. Use this module to create nuts and washers. ```openscad include nut_blank(0.5); ``` -------------------------------- ### Create a Fastener Profile Source: https://github.com/cantareus/stemfie_openscad/blob/main/docs/stemfie.scad.md Generates a 2D profile for creating pins and screws. Use this module to define the cross-section of a fastener. ```openscad include fastener_profile(); ``` -------------------------------- ### Create an Open Nut Source: https://github.com/cantareus/stemfie_openscad/blob/main/docs/stemfie.scad.md Use the nut_open() module to create a threaded open nut. You can specify the length and whether the nut should be centered. ```openscad include nut_open(); ``` ```openscad include nut_open(1); ``` -------------------------------- ### Create a standard Stemfie beam Source: https://github.com/cantareus/stemfie_openscad/blob/main/docs/stemfie.scad.md Generates a basic Stemfie beam of a specified size. Ensure the stemfie.scad library is included. ```openscad include beam_block(3); ``` -------------------------------- ### Create an 'L' Brace using brace_cross() Source: https://github.com/cantareus/stemfie_openscad/blob/main/docs/stemfie.scad.md Use the brace_cross() module with an array of two lengths to create an 'L' shaped brace. The lengths define the extent of each brace from the intersection. ```OpenSCAD include brace_cross([5,3]); ``` -------------------------------- ### Create 2D Slot Profile (BU Radius) Source: https://github.com/cantareus/stemfie_openscad/blob/main/docs/stemfie.scad.md Creates a 2D slot with a length `l` and a radius of `BU/2`. This module uses the standard Block Unit for its radius. ```openscad include BU_slot(2); ``` -------------------------------- ### Create an Arc Brace with Reduced Holes due to Spacing Source: https://github.com/cantareus/stemfie_openscad/blob/main/docs/stemfie.scad.md Use the brace_arc() module with a large number of holes to demonstrate automatic reduction of holes to fit the brace geometry. The module ensures holes do not overlap. ```OpenSCAD include brace_arc(3, 360, holes = 100); ``` -------------------------------- ### Create 2D Slot Profile (Custom Radius) Source: https://github.com/cantareus/stemfie_openscad/blob/main/docs/stemfie.scad.md Creates a 2D slot with a specified `length` and radius `r`. This allows for flexible slot dimensions. ```openscad include slot(2, r = 2 + Clearance); ``` -------------------------------- ### Create a Pin Profile Source: https://github.com/cantareus/stemfie_openscad/blob/main/docs/stemfie.scad.md Generates a 2D profile specifically for creating pins. Use this module when designing pin-like components. ```openscad include pin_profile(); ``` -------------------------------- ### Create a Fastener Head Profile Source: https://github.com/cantareus/stemfie_openscad/blob/main/docs/stemfie.scad.md Generates a 2D profile for creating shafts and screw heads. Use this module to define the shape of a fastener head. ```openscad include fastener_head_profile(); ``` -------------------------------- ### Create a 'V' Brace using brace_cross() Source: https://github.com/cantareus/stemfie_openscad/blob/main/docs/stemfie.scad.md Use the brace_cross() module with an array of two lengths to create a 'V' shaped brace. This module overlaps two braces at an intersection. ```OpenSCAD include brace_cross([3,3]); ``` -------------------------------- ### Create a Fastener Head Source: https://github.com/cantareus/stemfie_openscad/blob/main/docs/stemfie.scad.md Generates a complete fastener head for pins and screws. Use this module to add a head to a fastener component. ```openscad include fastener_head(); ``` -------------------------------- ### Create 2D Slot Profile (Hole Radius) Source: https://github.com/cantareus/stemfie_openscad/blob/main/docs/stemfie.scad.md Creates a 2D slot with a length `l` and a radius equal to `HoleRadius`. This is useful for creating elongated openings. ```openscad include hole_slot(2); ``` -------------------------------- ### Create a Shaft Profile Source: https://github.com/cantareus/stemfie_openscad/blob/main/docs/stemfie.scad.md Generates a 2D profile for creating shafts and screws. Use this module to define the cross-section of a shaft. ```openscad include shaft_profile(); ``` -------------------------------- ### Create a 'T' Brace using brace_cross() Source: https://github.com/cantareus/stemfie_openscad/blob/main/docs/stemfie.scad.md Use the brace_cross() module with an array of three lengths to create a 'T' shaped brace. The lengths specify the arms extending from the central intersection. ```OpenSCAD include brace_cross([2,3,2]); ``` -------------------------------- ### Create a Default Beveled Cube Source: https://github.com/cantareus/stemfie_openscad/blob/main/docs/stemfie.scad.md Creates a beveled cube with default dimensions (1x1x1 block units). ```openscad include BU_cube(); ``` -------------------------------- ### Create a Double Thickness Blank Stemfie Brace Source: https://github.com/cantareus/stemfie_openscad/blob/main/docs/stemfie.scad.md Use the brace() module with custom height and holes set to false to create a blank brace. This is useful for creating solid brace structures. ```OpenSCAD include brace(3, h = 0.5, holes = false); ``` -------------------------------- ### Create a Circular Brace with Angle Adjustment Source: https://github.com/cantareus/stemfie_openscad/blob/main/docs/stemfie.scad.md Use the brace_arc() module with an angle slightly less than 360 degrees. If the angle is too large and would cause overlap, the module automatically sets the angle to 360 for a complete circle. ```OpenSCAD include brace_arc(3, 350, holes = 12); ``` -------------------------------- ### Create a Spacer Source: https://github.com/cantareus/stemfie_openscad/blob/main/docs/stemfie.scad.md Generates a free spacer for shafts or fasteners. Use `center = false` for a non-centered spacer. ```openscad include spacer(length = 0.5, center = false); ``` -------------------------------- ### Create Battery Holder Source: https://github.com/cantareus/stemfie_openscad/blob/main/docs/stemfie_electrics.scad.md Generates a battery holder for two 10440 lithium batteries. Use `half_only = true` for a single side. ```openscad include battery_holder(half_only = true); ``` -------------------------------- ### Include Stemfie Electrics Library Source: https://github.com/cantareus/stemfie_openscad/blob/main/docs/stemfie_electrics.scad.md To use the stemfie_electrics.scad library in your OpenSCAD project, add this include statement at the beginning of your file. ```openscad include ``` -------------------------------- ### Include Stemfie OpenSCAD Library Source: https://github.com/cantareus/stemfie_openscad/blob/main/docs/stemfie.scad.md To use the Stemfie OpenSCAD library, include it at the beginning of your OpenSCAD file. This makes all its modules and constants available for use. ```openscad include ``` -------------------------------- ### Create a Stemfie Screw Source: https://github.com/cantareus/stemfie_openscad/blob/main/docs/stemfie.scad.md Use the screw() module to create a standard Stemfie screw. You can specify the thread length and optionally the shaft length and whether to include a screw head. ```openscad include screw(1.375, 0.125); ``` ```openscad include screw(0.5, 3); ``` ```openscad include screw(1.5, screw_head = false); ``` -------------------------------- ### Create Custom Hole List on Brace Source: https://github.com/cantareus/stemfie_openscad/blob/main/docs/stemfie.scad.md Generates holes at specified coordinates on a brace. Use `neg = false` to add holes and `neg = true` to subtract them. ```openscad include difference() { union() { brace(5, holes = false); hole_list([[0,0],[4,0]], l = 0.25, neg = false); } hole_list([[0,0],[4,0]], l = 0.25); } ``` -------------------------------- ### Create a 3D Stemfie beam Source: https://github.com/cantareus/stemfie_openscad/blob/main/docs/stemfie.scad.md Generates a 3D Stemfie beam with specified dimensions for length, width, and height. Ensure the stemfie.scad library is included. ```openscad include beam_block([3, 2, 2]); ``` -------------------------------- ### Create a Circular Arc Brace with Specific Hole Spacing Source: https://github.com/cantareus/stemfie_openscad/blob/main/docs/stemfie.scad.md Use the brace_arc() module to create a circular arc brace. Specify the radius, angle, and number of holes. The module adjusts hole count if spacing is less than 1 block unit. ```OpenSCAD include brace_arc(2, 120, holes = 3); ``` -------------------------------- ### Create a Bevel Source: https://github.com/cantareus/stemfie_openscad/blob/main/docs/stemfie.scad.md Generates a bevel from a convex 2D profile. Use when you need to add chamfered edges to shapes. ```openscad include bevel(neg = false) circle(r = HoleRadius); ``` -------------------------------- ### Create an 'X' shaped beam Source: https://github.com/cantareus/stemfie_openscad/blob/main/docs/stemfie.scad.md Generates an 'X' shaped beam by overlapping four Stemfie beams of equal length. Ensure the stemfie.scad library is included. ```openscad include beam_cross([2,2,2,2]); ``` -------------------------------- ### Create a Stemfie beam with threaded ends Source: https://github.com/cantareus/stemfie_openscad/blob/main/docs/stemfie.scad.md Generates a Stemfie beam with threaded ends of a specified length. Ensure the stemfie.scad library is included. ```openscad include beam_threaded(4); ``` -------------------------------- ### Create a Stemfie Pin Source: https://github.com/cantareus/stemfie_openscad/blob/main/docs/stemfie.scad.md The pin() module generates a Stemfie pin. Specify the desired length and whether to include a head. ```openscad include pin(length = 1, head = true); ``` -------------------------------- ### Create N20 Motor Case Source: https://github.com/cantareus/stemfie_openscad/blob/main/docs/stemfie_electrics.scad.md Generates a STEMFIE motor case for an N20 geared motor. Customize `motor_length` and `half_only`. ```openscad include motor_case_N20(); ``` ```openscad include motor_case_N20(motor_length = 30, half_only = false); ``` -------------------------------- ### Create Beveled Plate with Holes Source: https://github.com/cantareus/stemfie_openscad/blob/main/docs/stemfie.scad.md Creates a beveled plate with a custom hole pattern. The `neg = false` argument adds holes, while the default `neg = true` subtracts them. ```openscad include difference() { union() { bevel_plate(h = 0.25) offset(r = BU/2) square([3 * BU, 4 * BU], center = true); hole_grid([4,5], l = 0.25, neg = false); } hole_grid([4,5], l = 0.25); } ``` -------------------------------- ### Create a Shaft with Beveled Ends Source: https://github.com/cantareus/stemfie_openscad/blob/main/docs/stemfie.scad.md Generates a blank shaft with beveled ends. Use this when you need a shaft with chamfered extremities. ```openscad include shaft(4, true); ``` -------------------------------- ### Create a Fixed Washer Source: https://github.com/cantareus/stemfie_openscad/blob/main/docs/stemfie.scad.md Generates a fixed washer for fasteners. The default length is 0.25 units. A custom length can be specified in base units (BU). ```openscad include fixed_washer(); ``` ```openscad include fixed_washer(10 / BU); ``` -------------------------------- ### Create a Beveled Hole Source: https://github.com/cantareus/stemfie_openscad/blob/main/docs/stemfie.scad.md Creates a standard circular hole with beveled top and bottom edges. Set `neg = false` to create a sleeve instead of a cavity. ```openscad include difference() { BU_cube(); hole(depth = 1, neg = true); } ``` ```openscad include hole(depth = 1, neg = false); ``` ```openscad include difference() { hole(depth = 1, neg = false); hole(depth = 1, neg = true); } ``` -------------------------------- ### Create an 'L' shaped beam Source: https://github.com/cantareus/stemfie_openscad/blob/main/docs/stemfie.scad.md Generates an 'L' shaped beam by overlapping two Stemfie beams of different lengths. Ensure the stemfie.scad library is included. ```openscad include beam_cross([5,3]); ``` -------------------------------- ### Create a Beveled Cutout Source: https://github.com/cantareus/stemfie_openscad/blob/main/docs/stemfie.scad.md Generates an irregular cutout with beveled top and bottom edges. The child shape defines the cutout's profile. Use `neg = false` to create a sleeve. ```openscad include difference() { union() { brace(4, holes = false); cutout(depth = 0.25, neg = false) BU_Tx(1) hole_slot(length = 3); } cutout(depth = 0.25, neg = true) BU_Tx(1) hole_slot(length = 3); } ``` ```openscad include difference() { union() { brace(4, holes = false); cutout(depth = 0.25, neg = false) offset(r=Clearance) shaft_profile(); } cutout(depth = 0.25, neg = true) offset(r=Clearance) shaft_profile(); } ``` -------------------------------- ### Create Rectangular Hole Grid Source: https://github.com/cantareus/stemfie_openscad/blob/main/docs/stemfie.scad.md Generates a rectangular array of holes centered on the origin. Use this to create patterns of holes for mounting or structural purposes. ```openscad include difference() { BU_cube([4,5,1]); hole_grid([4,5]); } ``` -------------------------------- ### Create a 'V' shaped beam Source: https://github.com/cantareus/stemfie_openscad/blob/main/docs/stemfie.scad.md Generates a 'V' shaped beam by overlapping two Stemfie beams of equal length. Ensure the stemfie.scad library is included. ```openscad include beam_cross([3,3]); ``` -------------------------------- ### Create a 'T' shaped beam Source: https://github.com/cantareus/stemfie_openscad/blob/main/docs/stemfie.scad.md Generates a 'T' shaped beam by overlapping three Stemfie beams with specified lengths. Ensure the stemfie.scad library is included. ```openscad include beam_cross([2,3,2]); ``` -------------------------------- ### Create a Shaft without Beveled Ends Source: https://github.com/cantareus/stemfie_openscad/blob/main/docs/stemfie.scad.md Generates a blank shaft without beveled ends. Use this when a simple, straight shaft is required. ```openscad include shaft(4, false); ``` -------------------------------- ### Create a Stemfie beam with specific holes Source: https://github.com/cantareus/stemfie_openscad/blob/main/docs/stemfie.scad.md Generates a Stemfie beam with holes only in the vertical (Z) direction. The 'center' argument is set to false. Ensure the stemfie.scad library is included. ```openscad include beam_block(3, holes = [false, false, true], center = false); ``` -------------------------------- ### Create Internal Thread Feature Source: https://github.com/cantareus/stemfie_openscad/blob/main/docs/stemfie.scad.md Generates an internal thread with specified length, and options for beveling and centering. The `internal = true` parameter is crucial for creating subtractive threads. ```openscad include difference() { BU_cube([1,1,1]); thread(2, internal = true, center = true, bevel = [true,false]); } ``` -------------------------------- ### Create Motor Shaft Source: https://github.com/cantareus/stemfie_openscad/blob/main/docs/stemfie_electrics.scad.md Generates an internally threaded motor shaft. Default length is 1 unit with 0.75 thread length. ```openscad include motor_shaft(); ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.