Please visit http://OpenSCAD.DIY3DTech.com for more information on this and many other projects! As in this episode we will be we will be designing and printing a hose sleeve to connect a 1.5 inch ID hose into a PVC coupler designed to connect with a 1.5 inch OD PVC pipe. In this video we cover out some of the finer points of the Translate command and how to use it when set Center = True.
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 |
/* * Open SCAD Name.: Sleeve * Copyright (c)..: 2016 www.DIY3DTech.com * * Creation Date..:04/15/2016 * Discription....: * * 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-------------------*/ // None /*---------------------Parameters---------------------*/ Base_OD = 48.3; Hose_OD = 38.6; Base_H = 10; Hose_H = 30; Wall_Thick = 3; /*-----------------------Execute----------------------*/ Sleeve (); /*-----------------------Modules----------------------*/ module Sleeve() { difference () { union() { //create base translate ([0,0,(Base_H/2)]) rotate([0,0,0]) cylinder(Base_H , (Base_OD/2)-.25, (Base_OD/2), $fn=60, center = true);//base sleeve //create hose sleeve translate ([0,0,(Base_H+(Hose_H/2))]) rotate([0,0,0]) cylinder( Hose_H, (Hose_OD/2), (Hose_OD/2), $fn=60, center = true);//hose sleeve }//end union //create hole translate ([0,0,(Base_H+Hose_H)/2]) rotate([0,0,0]) cylinder((Base_H+Hose_H)+2, (Hose_OD/2)-Wall_Thick, (Hose_OD/2)-Wall_Thick, $fn=60, center = true); }//end difference } //end module Sleeve /*----------------------End Code----------------------*/ |
3D Printer, Laser Cutter and CNC Swag (T-Shirts, Hats, Mugs, etc):
http://swag.DIY3DTech.com
More Ideas!
OpenSCAD – Designing a Compression Cover!
OpenSCAD – Designing a Pressure Fit Endcap!
Open SCAD – Complex Flange Designer!