|
![](/i/fill.gif) |
hi,
"esfoster" <nomail@nomail> wrote:
> I have a set of spheres defined with x, y, z, and size.
>
> I want to add a color to them based on their size. ...
suggest re-structuring your data, separate centres and radii. eg.
#declare spharr = array [N] {
array mixed [2] {<0.385010,0.768357,0.476123>,0.019470},
...
};
and a '#for()' loop to make the union of spheres from that. then you can
"re-use" the radius as spline point perhaps, to retrieve a corresponding colour.
<https://wiki.povray.org/content/Reference:Spline>
regards, jr.
Post a reply to this message
|
![](/i/fill.gif) |