POV-Ray : Newsgroups : povray.unofficial.patches : Isosurface & float functions : Re: Isosurface & float functions Server Time
2 Sep 2024 20:18:52 EDT (-0400)
  Re: Isosurface & float functions  
From: Gilles Tran
Date: 16 Jul 1999 08:38:28
Message: <378F286D.5E2F189D@inapg.inra.fr>
How's that for a discovery :
"^" is an invalid operator in straight povray ("object or directive not
found but ^ found instead)
but... it works in the function{} feature of the Superpatch !!!

So it solves the problem for pow (and also the riddle of why a common
function like this was not implemented ; I suspect that R. Suzuki actually
implemented ^ support before the official povray had the pow function).

Many thanks TonyB, you saved the day (mine at least)
Gilles

TonyB wrote:

> Ever hear of x^0.5?
>
> Gilles Tran wrote:
>
> > This is something I've noticed a while ago but didn't care about until
> > recently : some math functions are not recognized in the isosurface
> > function declaration : pow, log, atan2, int, ceil, floor.
> > function  y + sqrt(x) works
> > but
> > function  y + pow(x,0.5) returns an error ("float factor expected but
> > pow found instead")
> >
> > Any clue about this behavior ? Or am I missing something obvious ? It
> > looks like the part of the patch that parses the function declaration
> > doesn't know about these particular float functions.
> >
> > Many thanks
> >
> > Gilles
>
> --
> Anthony L. Bennett
> http://welcome.to/TonyB
>
> Graphics rendered
> by the Dreamachine.


Post a reply to this message

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