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.
*/
module Coque() { //Coque - Shell
color(Couleur1) {
difference() {
union() {
MainBox();
@ -327,6 +328,7 @@ module Coque() { //Coque - Shell
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();
}
}
}
}
if (BShell == 1) {
// Coque bas - Bottom shell
color(Couleur1) {
Coque();
}
// Pied support PCB - PCB feet
if (PCBFeet == 1) {
Feet();