Move the box color into the Coque module

This commit is contained in:
Joel Ebel 2018-05-18 20:36:19 -04:00
parent ffb35824ec
commit 526a6b01f0

View File

@ -319,13 +319,15 @@ module Holes() {
wall fixation legs and holes, and vents/decorations according to parameters. wall fixation legs and holes, and vents/decorations according to parameters.
*/ */
module Coque() { //Coque - Shell module Coque() { //Coque - Shell
difference() { color(Couleur1) {
union() { difference() {
MainBox(); union() {
Legs(); MainBox();
Legs();
}
Decorations();
Holes();
} }
Decorations();
Holes();
} }
} }
@ -596,20 +598,16 @@ module BPanL() {
if (TShell == 1) { if (TShell == 1) {
// Coque haut - Top Shell // Coque haut - Top Shell
color(Couleur1) { translate([0, Width, Height + 0.2]) {
translate([0, Width, Height + 0.2]) { rotate([180, 0, 0]) {
rotate([180, 0, 0]) { Coque();
Coque();
}
} }
} }
} }
if (BShell == 1) { if (BShell == 1) {
// Coque bas - Bottom shell // Coque bas - Bottom shell
color(Couleur1) { Coque();
Coque();
}
// Pied support PCB - PCB feet // Pied support PCB - PCB feet
if (PCBFeet == 1) { if (PCBFeet == 1) {
Feet(); Feet();