POV-Ray : Newsgroups : povray.beta-test : HF_Square Parse Error : HF_Square Parse Error Server Time
30 Jul 2024 20:22:07 EDT (-0400)
  HF_Square Parse Error  
From: Thorsten
Date: 2 Oct 2001 10:18:03
Message: <3BB9CC2D.6EC9FA92@ewetel.net>
Hello :-))

Shapes.inc again. Trying to have a look at
    object {
      HF_Square(
        "f_noise3d(x*3, y*3, z*3)", // FunctionName
        <-4,0,1>, // MnExt
        < 4,1,4>, // MxExt
        <10,10>, // Res
        false, // Smooth
        "" // FileName
      )
      pigment { Yellow }
    }
I received this error:
Parse Error: Expected 'operator', ( found instead
in parse_string.tmp.

I think the code above should be valid... If not,
please forgive me, take my excuse and forget
about it.

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,"}"))

I got it running...

Did I make any mistakes with the function declaration in
the code snippet above?

Greetings :-))

Thorsten
(3.5beta4, various systems, windows)


Post a reply to this message

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