POV-Ray : Newsgroups : povray.general : Macro assist? : Macro assist? Server Time
5 Aug 2024 18:21:52 EDT (-0400)
  Macro assist?  
From: Timothy R  Cook
Date: 12 Aug 2002 03:36:11
Message: <3D57656A.1070600@scifi-fantasy.com>
Ok, I have a program in BASIC that I'm using to generate
random numbers for a sphere_sweep, that looks like:

randomize timer
for n=1 to 23
   theta%=(rnd*36)*20
   r = rnd*0.24
   x = r*COS(theta%)
   y = r*SIN(theta%)
   z = (rnd*0.5)+1.25
   ? USING "X = +#.#####  Y = +#.#####  Z = +#.#####";x,y,z
next n

now, instead of running this program and entering the
values by hand in my sphere_sweep, how do I make a
macro in POV to generate a series of n points for the
sphere_sweep?

-- 
Tim Cook
http://empyrean.scifi-fantasy.com
mirror: http://personal.lig.bellsouth.net/lig/z/9/z993126

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GFA dpu- s: a?-- C++(++++) U P? L E--- W++(+++)>$
N++ o? K- w(+) O? M-(--) V? PS+(+++) PE(--) Y(--)
PGP-(--) t* 5++>+++++ X+ R* tv+ b++(+++) DI
D++(---) G(++) e*>++ h+ !r--- !y--
------END GEEK CODE BLOCK------


Post a reply to this message

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