From 1ad287d4190cf8e62bbfafa94f131f49d92b06b9 Mon Sep 17 00:00:00 2001 From: Jochen Vothknecht <jochen3120@gmail.com> Date: Thu, 23 Sep 2021 19:06:06 +0200 Subject: [PATCH] Adding helical pipes *lol* --- HeatSink.scad | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/HeatSink.scad b/HeatSink.scad index 87c57f7..f514c46 100644 --- a/HeatSink.scad +++ b/HeatSink.scad @@ -307,6 +307,27 @@ module cornerPipe(width, height, diameter, angle, radius, strength, center=false // cornerPipe(20, 10, 5, 90, 1, 1, true); +// Not what I wanted to code - but may come in handy anywhere in the future… +module helixPipe(width, height, length, diameter, angle, radius, strength, center=false) { + w = width; + h = height; + l = length; + a = angle; + r = radius; + _str = strength; + + tz = center ? 0 : h/2; + + translate([0, 0, tz]) linear_extrude(l, twist=a, convexity=8) translate([0, 0, 0]) difference() { + roundRect(w, h, r); + roundRect(w - _str*2, h - _str*2, r - _str); + } +} + +helixPipe(20, 10, 20, 5, 90, 1, 1, true); + + +// TODO: documentation! module adapterPipe( w0, h0, r0, str0, w1, h1, r1, str1, length, x_off=0, y_off=0, center=false @@ -331,7 +352,7 @@ module adapterPipe( } } -adapterPipe(20, 30, 6, 1, 20, 10, 1, 2, 30, x_off = 23, center=true); +// adapterPipe(20, 30, 6, 1, 20, 10, 1, 2, 30, x_off = 23, center=true); -- GitLab