POV-Ray : Newsgroups : povray.beta-test : HF_Square Parse Error : Re: HF_Square Parse Error Server Time
30 Jul 2024 20:20:09 EDT (-0400)
  Re: HF_Square Parse Error  
From: Thorsten
Date: 3 Oct 2001 00:54:09
Message: <3BBA997E.FF2190E3@ewetel.net>
> Although it's not said what is valid for use as "function" it seems to me to
> be only those which don't require parameters.  For instance f_bozo and
> f_crackle from the functions.inc.  I don't have any idea what the correct
> way of using these is myself, only that those can work okay without
> modification.
>
> > By modifying the HF_Square macro a bit
> >
> > #macro HF_Square(FunctionName, MnExt, MxExt, Res, Smooth, FileName)
> >  //#local Function =
> > Parse_String(concat("function(x,y,z){",FunctionName,"(x,y,z)}"))
> >    #local Function =
> > Parse_String(concat("function(x,y,z){",FunctionName,"}"))

An additional boolean parameter might come handy...

#macro HF_Square(FunctionName, MnExt, MxExt, Res, Smooth, FileName, Parameters)
#if (Parameters)
  #local Function = ... Version1
#else
  #local Function = ... Version2
#end

Thank you :-))

Thorsten


Post a reply to this message

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