|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On 4 Aug 2003 15:43:50 -0400, Warp <war### [at] tagpovrayorg> wrote:
> I was talking about lists of parameters created with #commands (#whiles
>etc).
I recall my discovery from beta testing times when lack of commas still is
parsed fine but behaves wrong:
http://news.povray.org/bp925u4upa1gl9kih2pikg4qusf0lr03kg%404ax.com
ABX
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Christopher James Huff <cja### [at] earthlinknet> wrote:
>> Anyways, if you want to be sure, you can simply write (-Foo).
> 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.
--
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}// - Warp -
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
In article <3f245b5c@news.povray.org> , Jake McDowell <McN### [at] Techiecom>
wrote:
> I need to render a fairly complex polygon, somewhat similar to a
> lopsided figure eight or bowtie, in a scene i am working on.
This is the wrong group for this question. This group is for discussion of
the POV-Ray source code. General questions about using the POV-Ray scene
description language should be asked in either povray.general or
povray.newusers.
Thorsten
____________________________________________________
Thorsten Froehlich
e-mail: mac### [at] povrayorg
I am a member of the POV-Ray Team.
Visit POV-Ray on the web: http://mac.povray.org
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |