Please visit OpenSCAD.DIY3DTech.com for more information on this and many other projects! As in this episode we will be looking at using Open-SCAD for more than just 3D Printing as Open-SCAD is also a very powerful 2 & 2.5D development program also, so we will show you how to use it for Laser Cutting (a gasket int his case) as well as CNC Machining a flange.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
/* * Open SCAD Name.: Dust Collector Flange * Copyright (c)..: 2016 www.DIY3DTech.com * * Creation Date..:04/15/2016 * Description....: Flange model for CNC dust collector * * Rev 1: Developed Model * Rev 2: * * 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 2 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. * * If used commercially attribution is required (OpenSCAD.DIY3DTech.com) * */ /*------------------Customizer View-------------------*/ // preview[view:north, tilt:top] /*---------------------Parameters---------------------*/ // diameter in (mm) flange_OD = 150; // diameter in (mm) flange_ID = 60; // diameter in (mm) bolt_ID = 6; // center to center spread of retaining bolts (mm) bolt_spread = 90; // number of bolts in flange bolt_count =4; /*-----------------------Execute----------------------*/ flange(); /*-----------------------Modules----------------------*/ module flange() { difference(){ //create flange circle(d=flange_OD,$fn=60); //remove center circle(d=flange_ID,$fn=60); //create circle pattern for (i=[0:(360/bolt_count):360]) { //theta is degrees set by for loop from 0 to 360 (degrees) theta=i; //this sets the x axis point based on the COS of the theta x=0+(bolt_spread/2)*cos(theta); //this sets the y axis point based on the sin of the theta y=0+(bolt_spread/2)*sin(theta); //this creates the circle or other obect at the x,y point translate([x,y,0])circle(d=bolt_ID,$fn=60); }//end for loop for circle creation /* //create holes manually %translate([(bolt_spread/2),0,0])circle(d=bolt_ID,$fn=60); %translate([-(bolt_spread/2),0,0])circle(d=bolt_ID,$fn=60); %translate([0,(bolt_spread/2),0])circle(d=bolt_ID,$fn=60); %translate([0,-(bolt_spread/2),0])circle(d=bolt_ID,$fn=60); */ }//end difference }//end module /*---------------------End Program--------------------*/ |
3D Printer, Laser Cutter and CNC Swag (T-Shirts, Hats, Mugs, etc):
swag.DIY3DTech.com