POV-Ray : Newsgroups : povray.general : Trouble parsing recursive macro : Re: Trouble parsing recursive macro Server Time
31 Jul 2024 08:33:05 EDT (-0400)
  Re: Trouble parsing recursive macro  
From: Christian Froeschlin
Date: 28 Jul 2007 18:10:53
Message: <46abbeed$1@news.povray.org>
barton wrote:

> I'm not stuck on recursion, although that seems to be the simplest way of
> generating a structure of this type.

Well, your branch factor is a whopping 10^3 = 1000 so obviously you
are not going to achieve a great recursion depth with this approach.
Are you stuck on the 10? Make the division count a parameter and
play with it, e.g., a 5x5x5 cube would be a lot friendlier.

The recursive approach itself is not the problem, just that
the object you are trying to build has a lot of components.

As there are gaps on all levels, almost every box could contribute
something to the output image. However, you might get away with
skipping all inner cubes (i.e., only recurse if one of i,j,k is
exactly 0 or 10), effectively reducing the branch factor to
10x10x10 - 8x8x8 = 488.


Post a reply to this message

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