POV-Ray : Newsgroups : povray.general : Help - using rgb colors with triangles : Re: Help - using rgb colors with triangles Server Time
11 Aug 2024 17:14:04 EDT (-0400)
  Re: Help - using rgb colors with triangles  
From: Ken
Date: 19 Jun 1999 20:53:22
Message: <376C3899.B9FFCF9B@pacbell.net>
David Arcoleo wrote:
> 
> > #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

No I am afraid that simply is just not possible.

-- 
Ken Tyler

mailto://tylereng@pacbell.net


Post a reply to this message

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