From 31274e9b876246e2bdd193d550981f7133b4e933 Mon Sep 17 00:00:00 2001 From: Jochen Vothknecht <jochen3120@gmail.com> Date: Mon, 27 Sep 2021 08:05:38 +0200 Subject: [PATCH] Better material definitions --- HeatSink.scad | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/HeatSink.scad b/HeatSink.scad index 3371abf..bed9830 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(); } -- GitLab