/******************************************************************************************************************************************** //Macros for murata TZ03 type F capacitor trimmer //Designed by Philippe Boucheny //Rev. 1.1 du 29/12/05 ********************************************************************************************************************************************/ #macro CAP_TRIM_TZ03F_GRND (col,dot) union{ difference{ union{ difference{ union{ torus { 2.5, 0.5 translate 4.3*y} //top round cylinder{<0,0,0><0,4.3,0> 3} //main case cylinder{<0,0,0><0,4.8,0> 2.5} //top cover } union{ box{<0,-0.2,-3.2><+3.2,5.0,3.2>} //delete back side (flat side) } } cylinder{<2.5,0,+1.75><2.5,4.3,+1.75> 0.5} //back bottom to top edges cylinder{<2.5,0,-1.75><2.5,4.3,-1.75> 0.5} sphere {<2.5,4.3,-1.75>, 0.5} //back top corners sphere {<2.5,4.3,+1.75>, 0.5} cylinder{<2.5,4.3,+1.75><2.5,4.3,-1.75> 0.5} //back top corner to corner edge box{<-1.3,0,-0.25><+1.3,4.3,+0.25> rotate -16.7*y translate<1.3,0,-2.3709>} //flanks box{<-1.3,0,-0.25><+1.3,4.3,+0.25> rotate +16.7*y translate<1.3,0,+2.3709>} //flanks prism {0 4.8 4 <0, 2.5>, <2.5, 1.75>, <2.5, -1.75>, <0,-2.5>} //top cover box{<0,0,+1.75><3,4.3,-1.75>} //back cylinder{<-1.35,4.3,0><+1.3,4.3,0> 0.5 rotate -16.7*y translate<1.3,0,-2.11>} //back top corner to main case edges cylinder{<-1.35,4.3,0><+1.3,4.3,0> 0.5 rotate +16.7*y translate<1.3,0,+2.11>} cylinder{<0,0,+2.5><0,4.3,+2.5> 0.5} //back bottom to top edges cylinder{<0,0,-2.5><0,4.3,-2.5> 0.5} sphere {<0,4.3,-2.5>, 0.5} //main case junctions sphere {<0,4.3,+2.5>, 0.5} } union{ cylinder{<0,4,0><0,5,0> 1.25} //central hole box{<+0.1,-1,-0.55><-0.1,6,+0.55> translate -2.9*x } //front pin groove on round side box{<+0.1,-1,-0.6><-0.1,1.1,0.6> translate +2.91*x} //back pin groove on flat side } pigment{col} } difference{ cylinder{<0,4,0><0,4.5,0> 1.1} //metalic axe union{ box{<+1.1,4.1,-0.25><-1.1,4.51,+0.25>} //axe cross grooves box{<-0.25,4.11,-1.1><+0.25,4.51,+1.1>} } pigment{Silver} } box{<+0.1,0,-0.5><-0.1,4.2,+0.5> translate -2.9*x pigment{Silver}} //visible front pin allong the case difference{ cylinder{<+0.1,0,0><-0.1,0,0> 0.5 rotate -15*z translate <-2.9,4.2,0> pigment{Silver}} //top front pin box{<+0.1,0,-0.5><-0.1,4.2,+0.5> translate -3.1*x pigment{Silver}} } box{<+0.1,0,-0.5><-0.1,1,+0.5> translate +2.91*x pigment{Silver}} //visible back pin allong the case box{<+0.1,-3,-0.5><-0.1,4.3,+0.5> translate 2.54*x pigment{Silver}} //flat side pin box{<+0.125,-3,-0.5><-0.125,3.0,+0.5> translate -2.54*x pigment{Silver}} //round side pin box{<+0.1,-0.35355,-0.35355><-0.1,0.35355,+0.35355> rotate 45*x translate <2.54,-3,0> pigment{Silver}} //flat side pin box{<+0.125,-0.35355,-0.35355><-0.125,0.35355,+0.35355> rotate 45*x translate <-2.54,-3,0> pigment{Silver}} //round side pin #if(dot=1) cylinder{<2.2,0,0><2.2,4.81,0> 0.4 pigment{White}} //White dot on the top #end rotate 90*y } #end #macro CAP_TRIM_TZ03_BLUE() object{CAP_TRIM_TZ03F_GRND(Blue,0)} #end #macro CAP_TRIM_TZ03_PINK() object{CAP_TRIM_TZ03F_GRND(Pink,0)} #end #macro CAP_TRIM_TZ03_WHITE() object{CAP_TRIM_TZ03F_GRND(White,0)} #end #macro CAP_TRIM_TZ03_GREEN() object{CAP_TRIM_TZ03F_GRND(Green,0)} #end #macro CAP_TRIM_TZ03_ORANGE() object{CAP_TRIM_TZ03F_GRND(Orange,0)} #end #macro CAP_TRIM_TZ03_RED() object{CAP_TRIM_TZ03F_GRND(Red,0)} #end #macro CAP_TRIM_TZ03_BROWN() object{CAP_TRIM_TZ03F_GRND(Brown,0)} #end #macro CAP_TRIM_TZ03_YELLOW() object{CAP_TRIM_TZ03F_GRND(Yellow,0)} #end #macro CAP_TRIM_TZ03_BLACK() object{CAP_TRIM_TZ03F_GRND(Gray15,0)} #end #macro CAP_TRIM_TZ03_BLACKDOT() object{CAP_TRIM_TZ03F_GRND(Gray15,1)} #end