From 526a6b01f02f2b39ff962e8f56eeba1fd7469286 Mon Sep 17 00:00:00 2001 From: Joel Ebel Date: Fri, 18 May 2018 20:36:19 -0400 Subject: [PATCH] Move the box color into the Coque module --- files/U_Box_V104_Test_Cleaned.scad | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/files/U_Box_V104_Test_Cleaned.scad b/files/U_Box_V104_Test_Cleaned.scad index 3e39bd4..70d23f5 100644 --- a/files/U_Box_V104_Test_Cleaned.scad +++ b/files/U_Box_V104_Test_Cleaned.scad @@ -319,13 +319,15 @@ module Holes() { wall fixation legs and holes, and vents/decorations according to parameters. */ module Coque() { //Coque - Shell - difference() { - union() { - MainBox(); - Legs(); + color(Couleur1) { + difference() { + union() { + MainBox(); + Legs(); + } + Decorations(); + Holes(); } - Decorations(); - Holes(); } } @@ -596,20 +598,16 @@ module BPanL() { if (TShell == 1) { // Coque haut - Top Shell - color(Couleur1) { - translate([0, Width, Height + 0.2]) { - rotate([180, 0, 0]) { - Coque(); - } + translate([0, Width, Height + 0.2]) { + rotate([180, 0, 0]) { + Coque(); } } } if (BShell == 1) { // Coque bas - Bottom shell - color(Couleur1) { - Coque(); - } + Coque(); // Pied support PCB - PCB feet if (PCBFeet == 1) { Feet();