POV-Ray : Newsgroups : povray.general : macro - without () : Re: macro - without () Server Time
5 Aug 2024 16:13:48 EDT (-0400)
  Re: macro - without ()  
From: Greg M  Johnson
Date: 2 Oct 2002 08:28:11
Message: <3d9ae65b$1@news.povray.org>
"Rafal 'Raf256' Maj" <raf### [at] raf256com> wrote in message
news:Xns### [at] 204213191226...


>
> union { // my space ship - part of BIG scene
>       union {
>         // 30 lines - random spheres - damage from bullets
>       }
> and You want fastly check how ship would like without random spheres
> damage.
>

I'd have something like:

difference{
    #declare numbull=100;
    #declare n=0;
    #while(n<numbull)

    sphere {RANDOM_LOCATION, SIZE }

    #declare n=n+1;
   #end
   }

Then test various values of numbull
You could even but your numbull declaration at the top of the code to make
it easier to find.


Post a reply to this message

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