include include use module Volume_(Depth, Box=false) { if (Box) { cube([Depth, VolumeLength, VolumeHeight], center=false); } else { pillX(Depth, VolumeLength, VolumeHeight, center=false); } } module Volume(Depth=2, Box=false) { translate([BodyWidth, VolumeMinY, VolumeMinZ]) Volume_(Depth, Box=Box); } module Power_(Depth, Box=false) { if (Box) { cube([Depth, PowerLength, PowerHeight], center=false); } else { pillX(Depth, PowerLength, PowerHeight, center=false); } } module Power(Depth=2, Box=false) { translate([BodyWidth, PowerMinY, PowerMinZ]) Power_(Depth, Box=Box); } module Camera_(Depth, Box=false) { if (Box) { cube([CameraWidth, CameraLength, Depth], center=false); } else { pillZ(CameraWidth, CameraLength, Depth, center=false); } } module Camera(Depth=2, Box=false) { translate([CameraMinX, CameraMinY, BodyHeight]) Camera_(Depth, Box=Box); } module Usb_(Depth, Box=false) { if (Box) { cube([UsbWidth, Depth, UsbHeight], center=false); } else { pillY(UsbWidth, Depth, UsbHeight, center=false); } } module Usb(Depth=2, Box=false) { translate([BodyWidth/2 - UsbWidth/2, BodyLength-Depth, UsbMinZ]) Usb_(Depth, Box=Box); } module Aux_(Depth) { cylinderY(d=3.5, h=Depth, center=false); } module Aux(Depth=10) { translate([AuxMinX, 0, AuxMinZ]) Aux_(Depth); } // module Speaker() // { // hull() { // translate([0,5,0])cylinder(d=5, h=5); // translate([0,25,0])cylinder(d=5, h=5); // } // hull() { // translate([0,-5,0])cylinder(d=5, h=5); // translate([0,-25,0])cylinder(d=5, h=5); // } // }