diff --git a/HeatSink.scad b/HeatSink.scad index 3371abff1d710f24bfcd843e0d2bd95a7dbca5bf..bed98308e1b865e9d9288a2acb8c105cd4fcc255 100644 --- a/HeatSink.scad +++ b/HeatSink.scad @@ -9,8 +9,8 @@ use <WebWeaver/scad/Piping.scad>; // Material definitions -GreenPLA = [28/255, 1.0, 47/255, 132/255]; -BlackAluminium = [16/255, 16/255, 16/255]; +module GreenPLA() { color([28/255, 1.0, 47/255, 132/255]) children(); } +module BlackAluminium() { color([16/255, 16/255, 16/255]) children(); } @@ -58,7 +58,7 @@ module symmetricHeatsink( for (y=[0:fin_cnt/2 - 1]) translate([0, y * ( fin_w0 + fin_spacing), baseplate]) fin(); } - color(BlackAluminium) translate([-l/2, -w/2, 0]) { + BlackAluminium() translate([-l/2, -w/2, 0]) { half(); translate([0, w, 0]) mirror([0, 1, 0]) half(); } @@ -240,9 +240,9 @@ module funnel() { translate([-hs_l/2, 0, 0]) cube([hs_l, hs_w/2, hs_w]); } } - - color(GreenPLA) { - + + + GreenPLA() { half(); mirror([0, 1, 0]) half(); }