/******************************************************************************************************************************************** // Macros for MUTIMEC SWITCH series // Designed by Zbynek Pazour // Rev 1.0.0 22.2.2011 ********************************************************************************************************************************************/ #macro SWITCH_MULTIMEC_3FTL6() #local pin = object { union { box{<0,0,0><0.3,-6,0.8>translate<-0.15,4,-0.4>} texture{col_silver} } } /////////////////////////definice rozmiru pinu union { difference { Round_Box_Union(<0,0,0>,<10.1,6.4,10.1>,0.2) box{<0,0,0><1,4,1> translate<1.5,-0.1,-0.1>} box{<0,0,0><1,4,1> translate<7.5,-0.1,-0.1>} box{<0,0,0><1,4,1> translate<1.5,-0.1,9.11>} box{<0,0,0><1,4,1> translate<7.5,-0.1,9.11>} box{<-0.1,0,0><10.2,1.5,1.5> translate<0,4.91,8.61>} pigment {color red 0.16 green 0.19 blue 0.47} } union { difference { cylinder {<0,0,0>,<0,4,0>,3.2} cylinder {<0,0,0>,<0,4,0>,2.8 translate<0,0.2,0>} box{<0,0,0>,<1,4,6.5>translate<-0.5,0.2,-3.25>} rotate<0,-45,0> pigment {White} translate<5.05,6.399,5.05> } union { box{<0,0,0>,<0.3,3.2,0.3>translate<3.21,0,0>} box{<0,0,0>,<0.3,3.2,0.3>translate<-3.5,0,0>} box{<0,0,0>,<0.3,3.2,0.3>translate<0,0,3.21>} box{<0,0,0>,<0.3,3.2,0.3>translate<0,0,-3.5>} pigment {White} translate<5.05,6.399,5.05> } } object{pin translate<0.1,0,1.25>} object{pin translate<0.1,0,(1.25+7.6)>} object{pin translate<10.1,0,1.25>} object{pin translate<10.1,0,(1.25+7.6)>} translate<-5.05,0,-5.05> } #end