POV-Ray : Newsgroups : povray.programming : Re: Pains in rendering complex polygons : Re: Pains in rendering complex polygons Server Time
4 Oct 2024 17:26:43 EDT (-0400)
  Re: Pains in rendering complex polygons  
From: Christopher James Huff
Date: 6 Aug 2003 11:38:07
Message: <cjameshuff-81D3A0.10363506082003@netplex.aussie.org>
In article <3f2f794b@news.povray.org>, Warp <war### [at] tagpovrayorg> 
wrote:

> > Or you could just use the comma where the syntax specifies one.
> 
>   Well, if you think "#if(whatever) , #end" is less obfuscated than "(-Foo)",
> then be my guest.

In some cases, it can be. Usually, I'll use the other method...a single 
entry outside the loop.

Maybe a parameter list structure could eventually be added to the macro 
language...you would just append entries to the list, and ignore the 
comma issue entirely.

#declare ParamList = param_list {< 1, 2, 3>, < 4, 5, 6>}

ParamList.append_value(< 1, 3, 5>);

polygon {ParamList.count
    ParamList
}

Or for the original example:

#declare ParamList = param_list

#declare Blah = 80;
#while(Blah > 0)
    ParamList.append_value(dSpline(Blah));
    #declare Blah = Blah - 1;
#end

polygon {ParamList.count
    ParamList
}

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

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