Beginners: please read this post and this post before posting to the forum.
0 Members and 1 Guest are viewing this topic.
Parse Error: No matching } in 'pigment', string identifier found instead
#macro DIODE_SMD_CHIP_0805(color_sub) union{ object{CAP_SMD_CHIP_GRND(2.0,1.25,1.3,rgb <0.8, 0.1, 0.2>)} }#end
#macro CAP_SMD_CHIP_GRND(L,W,T,K)union{ superellipsoid{<0.25-(L+W)/150, 0.25-(L+W)/150> pigment{color_sub} scale<L/2,W/2,T/2> } //Grundkoerper braun superellipsoid{<0.25-(L+W)/200, 0.25-(L+W)/200> scale<(K+L/100)/2,W/2,T/2> translate <(L-K)/2,0,0> texture{col_silver}} //rechter Anschluss superellipsoid{<0.25-(L+W)/200, 0.25-(L+W)/200> scale<(K+L/100)/2,W/2,T/2> translate <-(L-K)/2,0,0> texture{col_silver}} //linker Anschluss rotate<90,0,0> translate<0,T/2,0>}#end//2220#macro CAP_SMD_CHIP_2220(color_sub)object{CAP_SMD_CHIP_GRND(5.7,5.0,2.7,0.5)}#end//1825#macro CAP_SMD_CHIP_1825(color_sub)object{CAP_SMD_CHIP_GRND(4.5,6.4,1.7,0.5)}#end//1812#macro CAP_SMD_CHIP_1812(color_sub)object{CAP_SMD_CHIP_GRND(4.5,3.2,1.7,0.5)}#end//1210#macro CAP_SMD_CHIP_1210(color_sub)object{CAP_SMD_CHIP_GRND(3.2,2.5,1.7,0.5)}#end#macro CAP_SMD_CHIP_1206(color_sub)object{CAP_SMD_CHIP_GRND(3.2,1.6,1.5,0.5)}#end#macro CAP_SMD_CHIP_0805(color_sub)object{CAP_SMD_CHIP_GRND(2.0,1.25,1.3,0.5)}#end#macro CAP_SMD_CHIP_0603(color_sub)object{CAP_SMD_CHIP_GRND(1.6,0.8,0.9,0.3)}#end#macro CAP_SMD_CHIP_0402(color_sub)object{CAP_SMD_CHIP_GRND(1.0,0.5,0.6,0.2)}#end
superellipsoid{<0.25-(L+W)/150, 0.25-(L+W)/150> pigment{color_sub} scale<L/2,W/2,T/2> } //Grundkoerper braun
/********************************************************************************************************************************************//Grundmakro fuer SMD-Keramik-Chip-Kondensator (neu Parameter K = Anschlussbreite)//basiert auf Makro von Walter Muecke********************************************************************************************************************************************/#macro CAP_SMD_CHIP_GRND(L,W,T,K)union{ superellipsoid{<0.25-(L+W)/150, 0.25-(L+W)/150> pigment{color_sub} scale<L/2,W/2,T/2> } //Grundkoerper braun superellipsoid{<0.25-(L+W)/200, 0.25-(L+W)/200> scale<(K+L/100)/2,W/2,T/2> translate <(L-K)/2,0,0> texture{col_silver}} //rechter Anschluss superellipsoid{<0.25-(L+W)/200, 0.25-(L+W)/200> scale<(K+L/100)/2,W/2,T/2> translate <-(L-K)/2,0,0> texture{col_silver}} //linker Anschluss rotate<90,0,0> translate<0,T/2,0>}#end#macro CAP_SMD_CHIP_0805(color_sub)object{CAP_SMD_CHIP_GRND(2.0,1.25,1.3,0.5)}#end