POV-Ray : Newsgroups : povray.general : Macro for all you crazys out there. Server Time
6 Aug 2024 12:22:14 EDT (-0400)
  Macro for all you crazys out there. (Message 1 to 1 of 1)  
From: Corey Woodworth
Subject: Macro for all you crazys out there.
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.