From 14f6bb533a3dcc1d36b2b764906cdca7d8d24484 Mon Sep 17 00:00:00 2001 From: Chris Date: Fri, 10 Mar 2023 16:04:17 +0000 Subject: [PATCH] Added sleeving_length to al_clad_resistor_assembly(). --- readme.md | 1 + vitamins/component.scad | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/readme.md b/readme.md index 2150b76..ad2ad50 100644 --- a/readme.md +++ b/readme.md @@ -819,6 +819,7 @@ Various electronic components used in hot ends and heated beds. | ` TO220(description, leads = 3, lead_length = 16)` | Draw a TO220 package, use `description` to describe what it is | | ` TO247(description, lead_length = 20)` | Draw a TO247 package, use `description` to describe what it is | | `al_clad_resistor(type, value, leads = true)` | Draw an aluminium clad resistor | +| `al_clad_resistor_assembly(type, value, sleeved = true, sleeving = HSHRNK32, sleeving_length = 15)` | Draw aluminium clad resistor with optional sleaving, positions children at the screw positions | | `al_clad_resistor_hole_positions(type)` | Position children at the screw holes of an aluminium clad resistor | | `al_clad_resistor_holes(type, h = 100)` | Drill screw holes for an aluminium clad resistor | | `fack2spm()` | Draw a FACK2SPM Cat5E RJ45 shielded panel mount coupler | diff --git a/vitamins/component.scad b/vitamins/component.scad index b725063..84012d5 100644 --- a/vitamins/component.scad +++ b/vitamins/component.scad @@ -190,10 +190,7 @@ module al_clad_resistor(type, value, leads = true) { //! Draw an aluminium clad cylinder(r = leads ? 3 : height / 2 - 2, h = length + eps, center = true); } -module al_clad_resistor_assembly(type, value, sleeved = true) { //* Draw aluminium clad resistor with optional sleaving, positions children at the screw positions - sleeving_length = 15; - sleeving = HSHRNK32; - +module al_clad_resistor_assembly(type, value, sleeved = true, sleeving = HSHRNK32, sleeving_length = 15) { //! Draw aluminium clad resistor with optional sleaving, positions children at the screw positions al_clad_resistor(type, value); if(sleeved)