POV-Ray : Newsgroups : povray.general : I'll try a signature again... : Re: I'll try a signature again... Server Time
6 Aug 2024 19:34:54 EDT (-0400)
  Re: I'll try a signature again...  
From: Warp
Date: 22 Mar 2002 22:06:10
Message: <3c9bf122@news.povray.org>
Sir Charles W. Shults III <aic### [at] cflrrcom> wrote:
>     Ah ah, very neat means of creating the variable- no #declare or #local- my
> hat is off to you.

  It's a "classic" trick. (Not really "classic" in the true sense of the
word because this type of tricks have existed for so short time in this
context, but "classic" in the sense that it's one of the things to look at
to see if a loop could be shortened by replacing it with a recursive macro.)

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

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