POV-Ray : Newsgroups : povray.binaries.images : My first (working script) : Re: My first (working script) Server Time
18 Aug 2024 08:21:03 EDT (-0400)
  Re: My first (working script)  
From: Dan Johnson
Date: 14 May 2001 19:16:41
Message: <3B01B909.ED7CDF0A@hotmail.com>
Thomas Lake wrote:

> Hmm sorry I don't understand how can the modulo function help me here?
>

Like this see previous reply to your first post.

#macro R2 (Block,NumBlocks,Angle,Radius)
         #local N = 0;
         #while (N<NumBlocks)
           object {Block R(Radius,Angle*N+Angle/2)translate <0,0,4*mod(N+1,2)>}

           #local N = N + 1;
         #end
#end




--
Dan Johnson

http://www.geocities.com/zapob


Post a reply to this message


Attachments:
Download 'brickarch2.gif' (6 KB)

Preview of image 'brickarch2.gif'
brickarch2.gif


 

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