POV-Ray : Newsgroups : povray.animations : Splitting a union into its parts : Re: Splitting a union into its parts Server Time
29 Apr 2024 17:06:41 EDT (-0400)
  Re: Splitting a union into its parts  
From: clipka
Date: 16 Dec 2008 17:05:00
Message: <web.49482593d423883cecb6e40e0@news.povray.org>
"Delfo" <nomail@nomail> wrote:
> I would like to have an object "explode". In order to enhance the effect, since
> it's a union, I'd like to know if there's a way , given a union object, to
> parse its components.
> Something like
> for (every component in the union) do
>   translate <>...
> etc etc
>
> It would be faster than putting the translation code in every object in the
> union declaration. Is it possible?

Not with POV-ray's own Scene Description Language.

You could, however, assign the component objects to an array, which you can then
loop through to build your union, adding translations along the way.


Post a reply to this message

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