POV-Ray : Newsgroups : povray.general : Particle / Physics system preprocessor requirements : Re: Particle / Physics system preprocessor requirements Server Time
7 Aug 2024 01:25:07 EDT (-0400)
  Re: Particle / Physics system preprocessor requirements  
From: John D  Gwinner
Date: 12 Dec 2001 21:11:22
Message: <3c180e4a$1@news.povray.org>
I had a thought:

/** mass(1.0) */
/* mass(2.0) */

Mass 2.0 would be the comment, 1.0 would be the 'real' declaration.  This
would be easy to parse.

In addition, I couild just scan the whole file and look for /**'s and this
would mean my first version would not have to be a completly general POV-Ray
macro processor/parser.

However, I think longer term it would be nice to do this:

#declare mymass = 2.0;

/**mass(mymass)*/
/**mass(mymass * 2.0)*/
or even
/**mass( x* 2.0)*/
but the last would be just weird; essential for starting velocity and other
constraints however.  So I think I need to parse the whole file.

                  == John ==

"John D. Gwinner" <jgw### [at] dazsicom> wrote in message
news:3c17f6d0$1@news.povray.org...
> Oh,  I thought the comments were messier .. I mean, with the #include file
> you'd enter
> mass( 1.0)
> with the comments it would be
> /* mass (1.0) */
>
> Hmm ... maybe I could do BOTH, and have it be an option switch?
>
> Parsing inside comments actually causes problems, what if you are trying
to
> comment out a mass statement, i.e.
>
> /* this works */
> /* mass(1.0) */
> /* but let's comment this out */
> /* mass (2.0) */
> Which one is a real comment?
>
> I realize that the comments were my idea <G>.
>
> Surprised it's just you and me talking about this ...
>
>                   == John ==
>
> "Tim Nikias" <Tim### [at] gmxde> wrote in message
> news:3C17DA22.6AAA1898@gmx.de...
> > I'd rather go with the comments. They can still be function-style, and
> > since you have to read the POV-Script this way or another, I'd think
> > it doesn't matter that much which way you choose. But using comments
> > would be easier to handle, no #include-files to tamper with...
> >
> > Tim
> >
>
>


Post a reply to this message

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