POV-Ray : Newsgroups : povray.general : yet another sig : Re: yet another sig Server Time
7 Aug 2024 21:23:01 EDT (-0400)
  Re: yet another sig  
From: Tom Melly
Date: 11 May 2001 11:01:26
Message: <3afbfec6@news.povray.org>
"Warp" <war### [at] tagpovrayorg> wrote in message news:3afbfc25@news.povray.org...
>
>
>   Don't know if this version is less obfuscated, but at least it's shorter:

Bah! I even remembered that "local" would be shorter than "declare" and then forgot
to change it. Oh, well. Hmm, what else has changed? Well, I don't understand the mod
or div stuff (I'll look it up and see if I can figure it out). Ah, so a mesh is just
a union of triangs! Well, we learn something new every day. (well, I knew a mesh was
made of triangles, I just thought internally it would be more complicated).

>
> #macro G(D,E,F)#local I=array[3]{D,E,F}#local B=0;triangle{#while(
> B<3)#while(I[B])A[mod(I[B],10)]+#local I[B]=div(I[B],10);#end<-5,-
> 2,9>#local B=B+1;#end}#end #local A=array[7]{x,x*2,x*4,y,y*2,y*4,z
> }light_source{-x*6-z*9,1}mesh{G(105,10,146)G(105,246,10)G(105,56,
> 146)G(105,1256,246)G(1256,126,220)G(22156,2216,201)pigment{rgb 1}}//TM
>

Right. That's my sig. Ta.


Post a reply to this message

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