POV-Ray : Newsgroups : povray.beta-test : Code gets the processor too hot? : Re: Code gets the processor too hot? Server Time
2 May 2024 16:36:56 EDT (-0400)
  Re: Code gets the processor too hot?  
From: clipka
Date: 2 Apr 2013 07:38:52
Message: <515ac34c@news.povray.org>
Am 02.04.2013 08:45, schrieb Ger:
>
> If you look at the code then you'll see that in both cases the object in
> view is something like
>
> difference {
>    union {
>      box {}
>      cone {}
>      torus{}
>      }
>    50 x frame_number // for each iteration the same
>    sphere{}
>    }
>

Nope; the code the Erode macro generates is

difference {
   difference {
     difference {
       object { ObjectToErode }
       sphere {}
     }
     sphere {}
   }
   sphere {}
}

whereas the code the Erode1 macro generates is

difference {
   object { ObjectToErode }
   sphere {}
   sphere {}
   sphere {}
}

Note that POV-Ray doesn't collapse nested differences into a single one 
(although it would probably be a good idea).


Post a reply to this message

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