POV-Ray : Newsgroups : povray.general : Parse Error: No matching } in 'pigment', string identifier found instead : Parse Error: No matching } in 'pigment', string identifier found instead Server Time
20 Apr 2024 09:43:51 EDT (-0400)
  Parse Error: No matching } in 'pigment', string identifier found instead  
From: societyofrobots
Date: 1 Feb 2009 02:30:00
Message: <web.49854e434ba44896e977d74a0@news.povray.org>
I'm running Eagle3D that compiles using POV-Ray.

This is the error I'm getting:

Parse Error: No matching } in 'pigment', string identifier found instead


I'm calling this code I wrote:

#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


which references this default library that already works:

#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



When I get the error, POV-Ray highlights this line:
 superellipsoid{<0.25-(L+W)/150, 0.25-(L+W)/150> pigment{color_sub}
scale<L/2,W/2,T/2> }     //Grundkoerper braun


Anyone know what I'm doing wrong?


ps - for reference, this is Eagle3D:
http://www.societyofrobots.com/electronics_Eagle3D_tutorial.shtml


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.