POV-Ray : Newsgroups : povray.general : Help - using rgb colors with triangles : Re: Help - using rgb colors with triangles Server Time
11 Aug 2024 17:16:07 EDT (-0400)
  Re: Help - using rgb colors with triangles  
From: David Arcoleo
Date: 19 Jun 1999 18:02:52
Message: <376C1384.268BF03B@njmedicine.com>
> #declare T1 = texture { pigment { rgb<...> }}
> #declare T2 = texture { pigment { rgb<...> }}
> #declare T3 = texture { pigment { rgb<...> }}
> #declare T4 = texture { pigment { rgb<...> }}
> 
>     mesh {
> triangle { <...>,<...>,<...> texture {T1}}
> triangle { <...>,<...>,<...> texture {T2}}
> triangle { <...>,<...>,<...> texture {T3}}
> triangle { <...>,<...>,<...> texture {T4}}
>          }
> 

Thank you.  I already have everything in a mesh, and it is more
efficient that way.  However, because I'm using tens/hundreds of
thousands of triangles (I'm converting Mathematica-based graphics to
povray) I would like to be able to define the pigment on the same line
as the triangle, and thus avoid #declaring thousands of textures.  Is
this possible in a mesh?

-Dave


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.