David Arcoleo wrote:
>
> Hi all, I'm writing an application that takes graphs in Mathematica and
> converts them to povray source. I construct the objects using triangles
> and am including an option to do an exact color match. How do I give a
> triangle an rgb? Everything I try doesn't seem to work.
>
> Thanks,
> -Dave
Exactly how many colors do you expect you will have to produce to
match mathmatica's colors in the conversion. If you are talking less
than say 50 - 100 individual colors or so it might be worth your
effort to write a sorting routine that places the triangles of a
given color each into it's own mesh object. This way you need only
add a pigment to each group of triangles as opposed to every triangle
you produce.
--
Ken Tyler
mailto://tylereng@pacbell.net
Post a reply to this message
|