diff --git a/HeatSink.scad b/HeatSink.scad index 87c57f7100b7ac7cf49245ec1bc396fbfe46d1b5..f514c46204bd9e4da1d8eb0b841c8982243a4584 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);