| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- /*
- * Copyright (c) 2019 Clementine Computing LLC.
- *
- * This file is part of PopuFare.
- *
- * PopuFare is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * PopuFare is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with PopuFare. If not, see <https://www.gnu.org/licenses/>.
- *
- */
- include <PopufareHousingCommon.scad>
- module PopufareHousingFrontBottomPlate() {
-
- w = POPUFARE_HOUSING_WIDTH;
- h = POPUFARE_FRONT_HEIGHT;
- bx = POPUFARE_BRACKET_CX;
- br = POPUFARE_BRACKET_D/2.0;
- de = POPUFARE_BRACKET_DE;
- lip = _MATERIAL_THICKNESS;
- lip_top = _MATERIAL_THICKNESS * sqrt(2.0);
-
- difference() {
- union() {
- square([w,h], center=true);
-
- // lip to cover bottom plate
- //
- translate([0,-(h/2 + lip/2)]) square([w,lip], center=true);
- };
-
- // shave off top front panel to accomodate angle plate
- //
- translate([0, (h/2 - lip_top)]) square([w, lip_top], center=true);
-
- // attach to bottom plate bracket
- //
- translate([ -(w/2 - de), -(h/2-bx) ]) circle(br);
- translate([ (w/2 - de), -(h/2-bx) ]) circle(br);
-
- // side plate bracket attachment
- //
- translate([ -(w/2 - bx), 0]) circle(br);
- translate([ (w/2 - bx), 0]) circle(br);
- }
- }
- //PopufareHousingFrontBottomPlate();
|