POV-Ray : Newsgroups : povray.general : Macro for all you crazys out there. : Macro for all you crazys out there. Server Time
19 Nov 2024 09:37:57 EST (-0500)
  Macro for all you crazys out there.  
From: Corey Woodworth
Date: 27 Mar 2002 19:52:29
Message: <3ca2694d$1@news.povray.org>
I'm still playing with macros and tying to understand 'em better :) Here is
a quick one I came up with that generates padded walls.

#macro paddedWall (X,Y)
  merge {
  #declare J=1;
  #while (J<=Y)
    #declare I =1;
    #while(I<=X)
      sphere {<I,J,0>,1}
      sphere {<I+.5,J+.5,-.7>,.1}
      sphere {<I+.5,J+.5, .7>,.1}
      #declare I=I+1;
    #end
  #declare J=J+1;
  #end
  pigment {color rgb <.3,.3,.3>}
  }
#end

Corey


Post a reply to this message

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