/******************************************************************************************************************************************** // Macros for DM03 ZIPPY series // Designed by Zbynek Pazour // Rev 1.0.0 27.1.2011 ********************************************************************************************************************************************/ #macro SWITCH_ZIPPY_DM03S0P() union { difference { box {<0,0,0>,<12.8,3,5.8>} cylinder{<3.15,1.5,-0.1>,<3.15,1.5,5.81>,1.1} cylinder{<3.15+6.5,1.5,-0.1>,<3.15+6.5,1.5,5.81>,1.1} pigment{Grey} } box {<4.7,0.8,-0>,<8.2,6.5,5.81>pigment{Black}} box {<5.7,1.85,-0>,<7.3,3,5.811>pigment{Grey}} merge { cylinder{<3.45,7.25,1.45>,<3.45,7.25,4.35>0.5} pigment{OrangeRed} scale 0.89 } ////////////////////////////////////////piny box {<0,3,0>,<12.8,6.5,5.8> pigment {Black}} box{ <0.87,-3.5,2.7>,<1.77,0,3.1> pigment {Silver}} box{ <0.87+5.08,-3.5,2.7>,<1.77+5.08,0,3.1> pigment {Silver}} box{ <0.87+(2*5.08),-3.5,2.7>,<1.77+(2*5.08),0,3.1>pigment {Silver}} translate<-6.45,0,-3> } #end #macro SWITCH_ZIPPY_DM03S1P() union { difference { box {<0,0,0>,<12.8,3,5.8>} cylinder{<3.15,1.5,-0.1>,<3.15,1.5,5.81>,1.1} cylinder{<3.15+6.5,1.5,-0.1>,<3.15+6.5,1.5,5.81>,1.1} pigment{Grey} } box {<4.7,0.8,-0>,<8.2,6.5,5.81>pigment{Black}} box {<5.7,1.85,-0>,<7.3,3,5.811>pigment{Grey}} merge { cylinder{<3.45,7.25,1.45>,<3.45,7.25,4.35>0.5} pigment{OrangeRed} scale 0.89 } ////////////////////////////////////////piny box {<0,3,0>,<12.8,6.5,5.8>pigment{Black}} box{ <0.87,-3.5,2.7>,<1.77,0,3.1> pigment {Silver}} box{ <0.87+5.08,-3.5,2.7>,<1.77+5.08,0,3.1> pigment {Silver}} box{ <0.87+(2*5.08),-3.5,2.7>,<1.77+(2*5.08),0,3.1>pigment {Silver}} //////////////////////////////////////////////////packa box{<0.5,6.5,1.45>,<13.75,6.8,4.35>rotate<0,0,18>translate <2.6,0,0>texture {T_Silver_1C} } translate<-6.45,0,-3> } #end #macro SWITCH_ZIPPY_DM03S2P() union { difference { box {<0,0,0>,<12.8,3,5.8>} cylinder{<3.15,1.5,-0.1>,<3.15,1.5,5.81>,1.1} cylinder{<3.15+6.5,1.5,-0.1>,<3.15+6.5,1.5,5.81>,1.1} pigment{Grey} } box {<4.7,0.8,-0>,<8.2,6.5,5.81>pigment{Black}} box {<5.7,1.85,-0>,<7.3,3,5.811>pigment{Grey}} merge { cylinder{<3.45,7.25,1.45>,<3.45,7.25,4.35>0.5} pigment{OrangeRed} scale 0.89 } ////////////////////////////////////////piny box {<0,3,0>,<12.8,6.5,5.8>pigment{Black}} box{ <0.87,-3.5,2.7>,<1.77,0,3.1> pigment {Silver}} box{ <0.87+5.08,-3.5,2.7>,<1.77+5.08,0,3.1> pigment {Silver}} box{ <0.87+(2*5.08),-3.5,2.7>,<1.77+(2*5.08),0,3.1>pigment {Silver}} //////////////////////////////////////////////////packa box{<0.5,6.5,1.45>,<13.75,6.8,4.35>rotate<0,0,18>translate <2.6,0,0>texture {T_Silver_1C}} /////////////////////////////////////////////////packa_kulata difference { cylinder{<0,0,1.45><0,0,4.35>1.5} cylinder{<0,0,1.449><0,0,4.351>1.25} texture {T_Silver_1C} clipped_by {plane{-y,0}} translate<15,10.4,0> } translate<-8.3,0,-3> } #end