POV-Ray : Newsgroups : povray.unofficial.patches : Splineproblem in MegaPov Server Time
2 Nov 2024 07:27:09 EDT (-0400)
  Splineproblem in MegaPov (Message 1 to 3 of 3)  
From: ingo
Subject: Splineproblem in MegaPov
Date: 10 Dec 1999 17:17:15
Message: <8E98EAC12seed7@204.213.191.228>
The following gives a "bad operand for period operator" error.
If it is SPL(clock).x there is no problem, with .z there is.


#declare SPL= spline{
   cubic_spline
    0  , 1
    0.5, 1.5
    1  , 2
}
sphere { <0,0,0>
   SPL(clock).y
   pigment {rgb 1}
}

Ingo

-- 
Photography: http://members.home.nl/ingoogni/
Pov-Ray    : http://members.home.nl/seed7/


Post a reply to this message

From: Nathan Kopp
Subject: Re: Splineproblem in MegaPov
Date: 10 Dec 1999 22:18:36
Message: <3851c28c@news.povray.org>
ingo <ing### [at] homenl> wrote ...
> The following gives a "bad operand for period operator" error.
> If it is SPL(clock).x there is no problem, with .z there is.
> 

Bug found and fixed. (the spline patch was missing the line "*terms=3;")

-Nathan


Post a reply to this message

From: Nieminen Juha
Subject: Re: Splineproblem in MegaPov
Date: 11 Dec 1999 19:02:54
Message: <3852e62e@news.povray.org>
ingo <ing### [at] homenl> wrote:
: #declare SPL= spline{

:    SPL(clock).y

  Btw, I still don't like the way these splines are used. They are declared
as identifiers but used as macros or functions. This is very inconsistent
with the rest of the povray syntax.
  I propose a syntax change to this. Perhaps square brackets [] instead
of the regular () ?
  That would be similar to how arrays are used. The spline is a bit like
an array, isn't it?

#declare SPL = spline { ... }

... translate SPL[clock] ...

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

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