From 60659a43f8cc5e0acc10ca7c513ba626754ee924 Mon Sep 17 00:00:00 2001 From: Chris Palmer Date: Wed, 24 Jun 2020 16:42:17 +0100 Subject: [PATCH] Added light_strip_clip_wall(). --- readme.md | 5 +++-- vitamins/light_strip.scad | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/readme.md b/readme.md index 9928e7c..c4a5088 100644 --- a/readme.md +++ b/readme.md @@ -1554,9 +1554,10 @@ The `light_strip_clip()` module makes a clip to go around the light that can be | Function | Description | |:--- |:--- | | ```light_strip_clip_depth(light)``` | Depth of the clip | -| ```light_strip_clip_length(light)``` | Outside length | +| ```light_strip_clip_length(light)``` | Outside length of clip | | ```light_strip_clip_slot(light)``` | Clip slot size | -| ```light_strip_clip_width(light)``` | Outside width | +| ```light_strip_clip_wall()``` | Clip wall thickness | +| ```light_strip_clip_width(light)``` | Outside width of clip | | ```light_strip_cut_length(type, segs)``` | Calculate cut length given segments | | ```light_strip_segments(type, max_length)``` | Calculate the maximum number of segments that fit in max_length | diff --git a/vitamins/light_strip.scad b/vitamins/light_strip.scad index 36f780c..2021f8e 100644 --- a/vitamins/light_strip.scad +++ b/vitamins/light_strip.scad @@ -137,7 +137,6 @@ module light_strip(type, segs = undef) { //! Draw specified light strip, segs ca linear_extrude(0.55 + eps) resistor_positions() square([2.1, 1.5 + 2 * eps], center = true); - } if(show_rays) @@ -148,8 +147,9 @@ wall = 1.8; clearance = 0.2; function light_strip_clip_slot(light) = light_strip_width(light) + clearance; //! Clip slot size function light_strip_clip_depth(light) = 10; //! Depth of the clip -function light_strip_clip_length(light) = light_strip_clip_slot(light) + 2 * wall; //! Outside length -function light_strip_clip_width(light) = light_strip_depth(light) + 2 * wall; //! Outside width +function light_strip_clip_length(light) = light_strip_clip_slot(light) + 2 * wall; //! Outside length of clip +function light_strip_clip_width(light) = light_strip_depth(light) + 2 * wall; //! Outside width of clip +function light_strip_clip_wall() = wall; //! Clip wall thickness module light_strip_clip(light) { //! Make a clip to go over the strip to be incorporated into a bracket linear_extrude(light_strip_clip_depth(light), convexity = 2)