Skip to content
Snippets Groups Projects
Commit 0cc3a079 authored by fxk8y's avatar fxk8y :spider:
Browse files

Separate material definitions

parent bc977b66
No related branches found
No related tags found
No related merge requests found
use <PCB.scad>;
use <Material.scad>;
use <../../WebWeaver/scad/Util.scad>; // TODO: needed?
......@@ -15,9 +16,22 @@ plexi = 3;
c_sx = pcb_w() + 0;
c_sy = pcb_h() + 0;
c_sz = 20;
c_fs = 15; // frontSpace = pcb to upper plexi
module frontPlexiOutline() {
}
module frontPlexi() {
Plexiglass()
linear_extrude(plexi, convexity=20)
frontPlexiOutline();
}
module CyanStripeCase() {
......
module Plexiglass(alpha=0.1) {
color([0 /255, 0/255, 0/255], alpha=alpha) children();
}
module FR4(alpha=1.0) {
color([170 /255, 0, 200 /255], alpha=alpha) children();
}
module Solder(alpha=1.0) {
color("grey", alpha=alpha) children();
}
use <Material.scad>;
use <../../WebWeaver/scad/Util.scad>;
$fs = 0.35;
......@@ -53,20 +54,20 @@ module pcbOutline() {
}
module pcb3D(pcb_t=pcb_t()) {
color([170 /255, 0, 200 /255])
FR4()
linear_extrude(pcb_t())
pcbOutline();
if ($preview) {
pcbScrewHoles()
color("grey")
Solder()
difference() {
translate([0, 0, -$E]) cylinder(d=M3()*2, h=pcb_t()+2*$E);
translate([0, 0, -$E*2]) cylinder(d=M3()-$E, h=pcb_t()+4*$E);
}
color("grey")
Solder()
translate([tpow_x(), tpow_y(), pcb_t() - $E])
cube([tpow_sx(), tpow_sy(), tpow_sz()], center=true);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment