/********************************************************************************************************************************************
//DUOLED 5mm
********************************************************************************************************************************************/
#macro DIODE_DIS_DUOLED_5MM_GRND(col,tra,height)
union{
              
	merge{
	        cylinder{<0,1,0><0,6.0,0>2.5}
		difference{
		        cylinder{<0,0,0><0,1,0>2.8}
			cylinder{<4,-0.5,0><4,1.5,0>1.5}
		}
		sphere{<0,6,0>2.5}
	     }
	     
		union{
	                box{<0,9.5-(pcb_height+pin_length+height),-0.5><0.5,10,0> translate<-2.54,0,0>}
		        box{<0,9.5-(pcb_height+pin_length+height),-0.5><0.5,15,0> }
		        box{<0,9.5-(pcb_height+pin_length+height),-0.5><0.5,10.3,0.> translate<2.54,0,0>}
	                box{<-0.25,0,-0.5><0.25,2,0> rotate<0,0,-40> translate<-2.30,9.85,0>}
	                prism{-0.5,0.0,6
	                        <1.00,1.70>,<3.04,1.70>,<3.04,1.10>,<1.50,0.70>,<1.00,0.70>,<1.00,1.70>
	                        rotate<90,0,0> translate<0,12,0>  
	                } 
	                box{<0,11.25,-0.5><0.5,15,0> translate<-1.27,0,0>}
	                box{<0,11.25,-0.5><0.5,15,0> translate<1.27,0,0>}
	                texture{col_silver} translate<-0.25,-11.4,0.25> 
	        }
	
	union{
	        lathe{
		        linear_spline 4,<0, 0>, <1, 1>, <1.2,1>,<0.2,0> texture{col_silver} translate<0,2.2,0>
	        }
	        box{<-0.4,0,-0.4><0.4,0.3,0.4>pigment{col} finish{ambient 1} translate<0,2.7,0>}
	        translate<0,1,0>
	}
	pigment{col filter tra}
	interior { ior 1.5 }
	translate<0,height+3.2,0>
}
#end

#macro DIODE_DIS_DUOLED_5MM(col,tra,height)
object{DIODE_DIS_DUOLED_5MM_GRND(col,tra,height)}
#end

/***  3dpack.dat
//    DUOLED5MM:0:0:0:0:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:DIODE_DIS_DUOLED_5MM(:Diskrete 5MM DUOLED:
