POV-Ray : Newsgroups : povray.general : Help: Place objects within a circle : Re: Place objects within a circle Server Time
4 Aug 2024 00:21:17 EDT (-0400)
  Re: Place objects within a circle  
From: Bill DeWitt
Date: 11 Sep 2003 23:00:01
Message: <3f6136b1$2@news.povray.org>
/// If you don't mind possible overlaps

#declare Name =
sphere
   { 0, 1
     pigment { rgb < 1.0, 0.0, 0.0 > }
   }
#declare R1 = seed(123);
#declare Radius = 25;
#declare Step = 0.05;
#declare I = 0;
#while (I < 1)
   #declare Placement = rand(R1)*Radius;
   object { Name translate < sin(I*(2*pi))*Placement, 0.0,
cos(I*(2*pi))*Placement >  }
   #declare I = I +Step;
#end


Post a reply to this message

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