You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1022 B
53 lines
1022 B
include <config.scad> |
|
include <CaseRoof.scad> |
|
include <SnapFit.scad> |
|
|
|
noBodyPrev = true; |
|
noDrillingsPrev = true; |
|
noPcbPrev = true; |
|
noRoofPrev = true; |
|
|
|
//noExtPrev = false; |
|
noExtPrev = true; |
|
|
|
|
|
if (is_undef(noCaseBodyExtendedPrev) || noCaseBodyExtendedPrev == false) { |
|
caseBodyExtended(); |
|
|
|
if (!noExtPrev) { |
|
extendedBaseTr() { |
|
placedPcb(); |
|
%caseRoofDrilled(); |
|
} |
|
} |
|
} |
|
|
|
|
|
// ------------------- |
|
|
|
module caseBodyExtended() { |
|
extendedBase(); |
|
extendedBaseTr() { |
|
caseBodyWithSnapHoles(); |
|
} |
|
} |
|
|
|
module caseBodyWithSnapHoles() { |
|
difference() { |
|
caseBodyDrilled(); |
|
for(v = caseSnaps) { |
|
translate([v[0], v[1]-eps, v[2]]) |
|
snapFitFemale([snapW, snapD+eps*2, snapH], snapEc, snapFemalePadding); |
|
} |
|
} |
|
} |
|
|
|
module extendedBaseTr() { |
|
translate([0, coverTh+coverMargin, 0]) |
|
children(); |
|
} |
|
|
|
module extendedBase() { |
|
cube([caseW, coverD, baseH]); |
|
} |
|
|
|
|