POV-Ray : Newsgroups : povray.advanced-users : function optimization question : Re: function optimization question Server Time
29 Jul 2024 22:30:04 EDT (-0400)
  Re: function optimization question  
From: Ron Parker
Date: 19 Mar 2002 11:11:22
Message: <slrna9eopc.ejm.ron.parker@fwi.com>
On Tue, 19 Mar 2002 17:04:00 +0100, Christoph Hormann wrote:
> 
> 
> Ron Parker wrote:
>> 
>> [...]
>> > Is this a bonus pack for patch writers or it will be boundled with Profesional
>> > Edition ? ;-)
>> 
>> What, assembly-language-like bytecode isn't good enough for you?  Kids these
>> days...
>> 
> 
> ;-)
> 
> Anyway it would be great if there was some kind of documentation for such
> hidden features.  Not neccessarily in the user docs, but maybe included in
> the source code package.

There is no source code package yet, right?  And when there is, there will
be the same documentation I used to find this feature.

That documentation looks something like this:

    else if(Token.Token_Id == STRING_LITERAL_TOKEN)
        {
                FNCode_SetFlag(2, Token.Token_String);
                Get_Token();
                if(Token.Token_Id == COMMA_TOKEN)
                {
                        Get_Token();
                        if(Token.Token_Id != STRING_LITERAL_TOKEN)
                                Expectation_Error("valid function expression");
                        FNCode_SetFlag(1, Token.Token_String);
                }
                else
                {
                        Unget_Token();
                        expression = FNSyntax_ParseExpression();
                }
        }

--
#macro R(L P)sphere{L __}cylinder{L P __}#end#macro P(_1)union{R(z+_ z)R(-z _-z)
R(_-z*3_+z)torus{1__ clipped_by{plane{_ 0}}}translate z+_1}#end#macro S(_)9-(_1-
_)*(_1-_)#end#macro Z(_1 _ __)union{P(_)P(-_)R(y-z-1_)translate.1*_1-y*8pigment{
rgb<S(7)S(5)S(3)>}}#if(_1)Z(_1-__,_,__)#end#end Z(10x*-2,.2)camera{rotate x*90}


Post a reply to this message

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