POV-Ray : Newsgroups : povray.advanced-users : the POV-ray SDL--similar to Java and/or Python? : Re: the POV-ray SDL--similar to Java and/or Python? Server Time
6 Oct 2024 15:18:09 EDT (-0400)
  Re: the POV-ray SDL--similar to Java and/or Python?  
From: Hugo
Date: 15 Sep 2006 18:29:18
Message: <450b293e@news.povray.org>
Warp wrote:
  >> #declare Sphere = sphere { <0,0,0>, 1 pigment { rgb 1 } }
>> #declare Sphere_Child = sphere { Sphere pigment  { rgb 0 } }
> 
>   That isn't even valid syntax. You probably meant "object { Sphere ...".
> And even then it doesn't work: The second object will be white too.
> 

Well, I know it is a little off-topic but POV-Ray (POV-Ray 3.6 at least) 
will happily parse the fragment

#declare Sphere = sphere { <0,0,0>, 1 pigment { rgb 1 } }
#declare Sphere_Child = sphere { Sphere pigment  { rgb 0 } }

Or even some weirder things like

#declare Sphere = sphere { <0,0,0>, 1 pigment { rgb 1 } }
#declare Sphere_Child = box { Sphere pigment  { rgb 0 } }

But I assume that it is just something unintentionally left behind in 
the code of the parser.

Regards,
Hugo.

-- 
www.bishop3d.com


Post a reply to this message

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