|
![](/i/fill.gif) |
> ultimately POV-ray needs something like
>
> #declare F = function(x)
> { Cube[int((x-X0)/StepX)] }
I might get killed for proposing something so inefficient, but:
(I only treat one-dimensional array, the rest (including optimization
correction of errors, introduction of interpolation,...) I leave to you)
#declare F = function(x)
{
#local I=1;
#while (I<Max)
select (x-X0-I*StepX, Cube[I-1],
#local I=I+1;
#end
Cube[Max-1]
#local I=1;
#while (I<Max)
)
#local I=I+1:
#end
}
--
merge{#local i=-11;#while(i<11)#local
i=i+.1;sphere{<i*(i*i*(.05-i*i*(4e-7*i*i+3e-4))-3)10*sin(i)30>.5}#end
pigment{rgbt 1}interior{media{emission x}}hollow}// Mark Weyer
Post a reply to this message
|
![](/i/fill.gif) |