/******************************************************************************************************************************************** //Macros for G6K Relays NAIS //Designed by Jean-Paul Schweitzer //Rev. 1.0 17/04/11 //------------------------------------------------------------------------------------------------- //RGB-Wichtung:RGB-Farbnummer/255 ********************************************************************************************************************************************/ #declare D = 0.0001; // cylinder{<-15,0,0>,<30,0,0>,0.1 pigment{Blue}} //X-axis // cylinder{<0,-50,0>,<0,20,0>,0.1 pigment{Red}} //Y-axis // cylinder{<0,0,-15>,<0,0,30>,0.1 pigment{Green}} //Z-axis #macro SPC_REL_G6K2G5VDC_GRND(value,voltage) union{ merge{ cylinder{<3.81,0.2,2.54>,<3.81,-4.1,2.54>,0.25} cylinder{<1.27,0.2,2.54>,<1.27,-4.1,2.54>,0.25} cylinder{<-1.27,0.2,2.54>,<-1.27,-4.1,2.54>,0.25} cylinder{<-3.81,0.2,2.54>,<-3.81,-4.1,2.54>,0.25} cylinder{<3.81,0.2,-2.54>,<3.81,-4.1,-2.54>,0.25} cylinder{<1.27,0.2,-2.54>,<1.27,-4.1,-2.54>,0.25} cylinder{<-1.27,0.2,-2.54>,<-1.27,-4.1,-2.54>,0.25} cylinder{<-3.81,0.2,-2.54>,<-3.81,-4.1,-2.54>,0.25} texture{col_silver} } merge{ object{Round_Box(<5.0,0.2,3.25>,<-5.0,5.0,-3.25>,0.25,0)} box{<3.81,0,3.25>,<1.27,0.2,3.05>} box{<-3.81,0,3.25>,<-1.27,0.2,3.05>} box{<3.81,0,-3.25>,<1.27,0.2,-3.05>} box{<-3.81,0,-3.25>,<-1.27,0.2,-3.05>} texture { pigment { color rgb<0.961,0.961,0.961> } finish {ambient 0.1 diffuse 0.9 phong 1} } } box{<4.8,0,3.05>,<-4.8,0.2,-3.05> texture { pigment { color rgb<0,0,0> } finish {ambient 0.1 diffuse 0.9 phong 1} } } merge{ box{<4.8,5.0+D,3.05>,<4.4,5.0+2*D,1.05>} cylinder{<3.6,5.0+D,2.65>,<3.6,5.0+2*D,2.65>,0.4} cylinder{<3.6,5.0+D,1.45>,<3.6,5.0+2*D,1.45>,0.4} text{ttf "arial.ttf" "OMRON" 0.01, 0 scale 1.2 rotate<90,180,0> translate<4.8,5.0+D,-1.05> } text{ttf "arial.ttf" value 0.01, 0 scale 1.0 rotate<90,180,0> translate<4.8,5.0+D,-0.05> } text{ttf "arial.ttf" volt 0.01, 0 scale 1.0 rotate<90,180,0> translate<2.5,5.0+D,1.85> } text{ttf "arial.ttf" "VDC" 0.01, 0 scale 1.0 rotate<90,180,0> translate<1.0,5.0+D,1.85> } text{ttf "arial.ttf" "JAPAN" 0.01, 0 scale 1.0 rotate<90,180,0> translate<2.5,5.0+D,3.05> } text{ttf "eagle3d.ttf" "A" 0.01, 0 scale 1.0 rotate<90,180,0> translate<-1.0,5.0+D,3.05> } text{ttf "eagle3d.ttf" "G" 0.01, 0 scale 1.5 rotate<90,180,0> translate<-3.0,5.0+D,2.55> } pigment{color Black} } } translate<0,1.6,0> rotate<0,0,0> #end #macro SPC_REL_G6K2G5VDC(value,volt) SPC_REL_G6K2G5VDC_GRND(value,"5") #end