Actions

User

User:James

From HacDC Wiki

Revision as of 23:50, 10 February 2017 by James (talk | contribs) (HacDC logo key fob)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

//HacDC logo key fob //created by James Sullivan //2-10-17 //Openscad version 2015.03-1 //dimensions in millimeters phi = 1/2+sqrt(5/4); //x:y=y:x+y thick=2.5; //thickness of base and key ring loop hole=5; //inner diameter of key ring loop: outer diameter is twice this, wall thickness is half this high=1; //height of logo and text above base width=25; //width of tag, height is proportional epsilon=0.025; //a very small number to ensure logo and letters intersect the base

color("blue") {

   //base
   translate([0,width*(1-phi),-thick]) scale([1,phi,thick/width]) cube(width,center=false);  
   // key ring loop
   $fn=46;
   difference(){
       translate([width/2,width+hole/2,-thick]) cylinder(h=thick,d=2*hole);
       translate([width/2,width+hole/2,-thick*1.5]) cylinder(h=2*thick,d=hole);
   }

} translate([0,0,high-epsilon]) scale([width/966,width/966,high/100]) surface(file="C:\\Users\\p007383b\\Documents\\Personal\\OpenSCAD\\HacDC-logo2.png", convexivity=14,center=false, invert=true); //HacDC logo //HAC letters translate([width/2,-width/4/phi,high/2-epsilon]) linear_extrude(height=high,center=true) text("HAC",font="helvetica",size=width/phi/2,halign="center",valign="center"); //DC letters translate([width/2,-width*3/4/phi,high/2-epsilon]) linear_extrude(height=high,center=true) scale([phi,1,1]) text("DC",font="helvetica",size=width/phi/2,halign="center",valign="center");

File:Example.jpg