|
![](/i/fill.gif) |
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
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
ingo <ing### [at] home nl> 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
|
![](/i/fill.gif) |