|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
In article <417946c2$1@news.povray.org> , Florian Brucker
<tor### [at] torfboldcom> wrote:
> Well, IMHO the code snippet is valid SDL.
No, it is not, you cannot return a function that way just like you cannot
pass a function that way either (well, with restrictions anyway).
Thorsten
____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde
Visit POV-Ray on the web: http://mac.povray.org
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
>> Well, IMHO the code snippet is valid SDL.
> No, it is not, you cannot return a function that way just like you cannot
> pass a function that way either (well, with restrictions anyway).
While I cannot find such a limitation mentioned in the documentation
(It's mentioned that you cannot pass functions as macro-parameters), I
do understand that this is the case.
My other statement about the proper treatment of syntax errors, however,
is still valid :)
Florian
--
camera{look_at-y*10location<8,-3,-8>*10}#local a=0;#while(a<999)sphere{
#local _=.01*a-4.99;#local p=a*.01-5;#local c=.01*a-4.995;<sin(p*pi)*5p
*10pow(p,5)*.01>sin(c*c*c*.1)+1pigment{rgb 3}}#local a=a+1;#end
/******** http://www.torfbold.com ******** http://www.imp.org ********/
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
> BTW the correct way to do what you seem to be trying to do is
> demostrated in the IsoCSG library. What you wrote can't work although
> it should of course not crash but return with an error.
Actually I found that error while trying to minimize a scene to show
another bug, so it's not code I'm acutally using ;) Thanks for the tip,
nevertheless.
Can I assume that the POV-Team knows about the bug, now, or do you want
me to file an official bug-report?
Florian
--
camera{look_at-y*10location<8,-3,-8>*10}#local a=0;#while(a<999)sphere{
#local _=.01*a-4.99;#local p=a*.01-5;#local c=.01*a-4.995;<sin(p*pi)*5p
*10pow(p,5)*.01>sin(c*c*c*.1)+1pigment{rgb 3}}#local a=a+1;#end
/******** http://www.torfbold.com ******** http://www.imp.org ********/
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Florian Brucker wrote:
...
> (It's mentioned that you cannot pass functions as macro-parameters), I
> do understand that this is the case.
...
Can you please tell me where this is mentioned ?
(I am curious because I do this all the time.)
--
Tor Olav
http://subcube.net
http://subcube.com
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
In article <41797f8c@news.povray.org> , Florian Brucker <tor### [at] torfboldcom>
wrote:
BTW, could you please fix your clock or timezone setting?
Thanks in advance,
Thorsten
____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde
Visit POV-Ray on the web: http://mac.povray.org
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
In article <41797f8c@news.povray.org> , Florian Brucker <tor### [at] torfboldcom>
wrote:
> While I cannot find such a limitation mentioned in the documentation
You have a very common misconception about the user manual here: The user
manual is *not* a specification of how POV-Ray should behave, and neither is
the assumption that everything the manual does not explicitly forbid legal.
The user manual should only be read such that everything it explicitly says
is allowed may be used.
Thorsten
____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde
Visit POV-Ray on the web: http://mac.povray.org
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
>> (It's mentioned that you cannot pass functions as macro-parameters)
> Can you please tell me where this is mentioned ?
> (I am curious because I do this all the time.)
Reread the specific section again, and it seems I misunderstood it
(2.2.1.6.2 Functions and Macros). IMHO it means you're not allowed to
pass a function's parameters to a macro like
function (a,b) {
MyMacro(a) + MyMacro(b)
}
Sorry for the confusion,
Florian
--
camera{look_at-y*10location<8,-3,-8>*10}#local a=0;#while(a<999)sphere{
#local _=.01*a-4.99;#local p=a*.01-5;#local c=.01*a-4.995;<sin(p*pi)*5p
*10pow(p,5)*.01>sin(c*c*c*.1)+1pigment{rgb 3}}#local a=a+1;#end
/******** http://www.torfbold.com ******** http://www.imp.org ********/
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
> You have a very common misconception about the user manual here: The user
> manual is *not* a specification of how POV-Ray should behave, and neither is
> the assumption that everything the manual does not explicitly forbid legal.
> The user manual should only be read such that everything it explicitly says
> is allowed may be used.
I can understand that the documentation is written in such a way.
However that is not clear, IMO, because there's a section called
"POV-Ray Reference". From my understanding of the word "reference"
denotes a complete explanation of something. But while I may be wrong
here (because I'm not a native English speaker), I think that the
following sentence, found at the beginning of chapter "2.2 Scene
Description Language" gives the same impression:
"The reference section describes the POV-Ray scene description language.
It is supposed to be used as a reference for looking up things. It does
not contain detailed explanations on how scenes are written or how
POV-Ray is used. It just explains *all* features, their syntax,
applications, *limits*, drawbacks, etc."
This has, however, nothing to do with my original report, so I'm setting
up a F'up2 povray.documentation.inbuilt.
Have a nice weekend,
Florian
--
camera{look_at-y*10location<8,-3,-8>*10}#local a=0;#while(a<999)sphere{
#local _=.01*a-4.99;#local p=a*.01-5;#local c=.01*a-4.995;<sin(p*pi)*5p
*10pow(p,5)*.01>sin(c*c*c*.1)+1pigment{rgb 3}}#local a=a+1;#end
/******** http://www.torfbold.com ******** http://www.imp.org ********/
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
> This has, however, nothing to do with my original report, so I'm setting
> up a F'up2 povray.documentation.inbuilt.
Said it, forgot it :(
Florian
--
camera{look_at-y*10location<8,-3,-8>*10}#local a=0;#while(a<999)sphere{
#local _=.01*a-4.99;#local p=a*.01-5;#local c=.01*a-4.995;<sin(p*pi)*5p
*10pow(p,5)*.01>sin(c*c*c*.1)+1pigment{rgb 3}}#local a=a+1;#end
/******** http://www.torfbold.com ******** http://www.imp.org ********/
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |