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,6 +319,7 @@ 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
color(Couleur1) {
difference() { difference() {
union() { union() {
MainBox(); MainBox();
@ -328,6 +329,7 @@ module Coque() { //Coque - Shell
Holes(); Holes();
} }
} }
}
/* foot module /* foot module
@ -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();