POV-Ray : Newsgroups : povray.advanced-users : Problem wih POV-Syntax : Re: Problem wih POV-Syntax Server Time
29 Jul 2024 16:23:46 EDT (-0400)
  Re: Problem wih POV-Syntax  
From: Mike Williams
Date: 8 Oct 2001 21:56:44
Message: <i8bDCHArvew7EwTi@econym.demon.co.uk>
Wasn't it Christoph Hormann who wrote:
>
>
>Thies Heidecke wrote:
>> 
>> Hi NG,
>> 
>> i am working on a macro for creating Blobcomponents. I've already
>> successfully implemented this with a blob-object. But now i want to use an
>> isosurface, because of the freedom of adding additional functions. when i
>> try my new macro i get a parser-error stating a vectoridentifier where an
>> operand should be, but i used the .x (.y / .z) operator to extract a
>> float-value but povray doesn't seem to care... has anyone tips what i made
>> wrong? Thanks in advance
>
>Try declaring locals like:
>
>  #local Cx = C.x;
>
>at the beginning of the macro.

Also, note that the line

        S*(1 - ( ( (x-Cx)^2 + (y-Cy)^2 + (z-Cz)^2 ) / (CR*R)^2 )^2 +  //

has seven "("s and only six ")"s. You either need to slip in a seventh
")" on that line somewhere or write a heck of a lot of them when you
return from your macro.

And remember that the expression returned by the macro has a spurious
"+" on the end, so you're going to have to call it something like

isosurface {
   function{
      Icosaeder(...)
      0
   }
   ...

Where the extra "0" is simply there to prevent the trailing "+" being
syntactically incorrect.

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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