stbenge <^@hotmail.com> wrote:
> At the risk of missing the point entirely and/or saying something
> stupid, I present this code:
You're *not* missing the point; in fact, from a quick glance at the code this
one seems to perfectly hit the mark:
> // read from array into a pigment
> #declare hfHeight=
> pigment{
> pigment_pattern{planar translate y}
> pigment_map{
> #declare V=0;
> #while(V<hfRes.y)
> [V/hfRes.y
> planar rotate z*90 translate x
> color_map{
> #declare U=0;
> #while(U<hfRes.x)
> [U/hfRes.x
> rgb hfPts[U][V]
> ]
> #declare U=U+1;
> #end
> }
> ]
> #declare V=V+1;
> #end
> }
> }
Asked for a smart solution - got one as it seems; thanks a lot!
Post a reply to this message
|