/* * Mendel Filament Spindle Bearing Bracket 2off * by Tony Buser * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ include <../mendel.inc> include <../mendel.conf> include bearing_bracket_width = 22; bearing_bracket_length = 21; bearing_bracket_height = 33; module bearing_bracket() { difference () { // TODO: chamfer? box(bearing_bracket_width, bearing_bracket_length, bearing_bracket_height); // shaft translate([0, bearing_bracket_length/2-rod_diameter+1, bearing_bracket_height/2-rod_diameter+1]) { rotate([-90, 0, -90]) { spindle_hole_horiz(bearing_bracket_width+2); } } // front nut translate([0, -bearing_bracket_length/2+3-1, bearing_bracket_height/2-rod_diameter+1]) { // top side cutout translate([0, 0, rod_diameter/2]) box(rod_diameter, rod_diameter-1, rod_diameter); rotate([0, -90, 90]) { spindle_hole_vert(rod_diameter+2); } rotate([90, 0, 0]) { spindle_nut_cavity(rod_diameter-1); } } } } translate([0, 0, bearing_bracket_length/2]) { rotate([-90]) bearing_bracket(); }