POV-Ray : Newsgroups : povray.binaries.scene-files : fractal cubes for Yadgar (his work) Server Time
2 Sep 2024 10:13:34 EDT (-0400)
  fractal cubes for Yadgar (his work) (Message 1 to 3 of 3)  
From: K
Subject: fractal cubes for Yadgar (his work)
Date: 10 Apr 2002 22:05:27
Message: <3cb4ef67@news.povray.org>
here is your source,
I tried to improve it for you.

K


Post a reply to this message


Attachments:
Download 'Boxesfra.pov.txt' (4 KB)

From: Yadgar
Subject: Re: fractal cubes for Yadgar (his work)
Date: 13 Apr 2002 05:08:32
Message: <3CB7F62D.30A4DABB@tiscalinet.de>
High!

K schrieb:

> here is your source,
> I tried to improve it for you.
>
> K
>

I looked it up and tried it out... awesome! But how is it possible?
Shouldn't each new cb2 definition override the previous one?

Eager to learn,

Yadgar

Now playing: Chip Meditation (Software)


Post a reply to this message

From: K
Subject: Re: fractal cubes for Yadgar (his work)
Date: 14 Apr 2002 00:47:44
Message: <3cb909f0@news.povray.org>
The new definitions do override.
but the order is important.

#declare cb2 = object
{
  union
  {
    object{ cb }
    object{ cb2 scale 1/2.5 translate <1, 1, 1> }
    object{ cb2 scale 1/2.5 translate <1, 1, -1> }
    object{ cb2 scale 1/2.5 translate <1, -1, 1> }
    object{ cb2 scale 1/2.5 translate <1, -1, -1> }
    object{ cb2 scale 1/2.5 translate <-1, 1, 1> }
    object{ cb2 scale 1/2.5 translate <-1, 1, -1> }
    object{ cb2 scale 1/2.5 translate <-1, -1, 1> }
    object{ cb2 scale 1/2.5 translate <-1, -1, -1> }
  }
}
POV creates the new object that is defined, before it assigns it to cb2.
it is like the statement.
a = a + 1;
a + 1   is figured out first, and the result is stored in a.
this is a very common statement in many computer programs (C++)

using this method, you should be able to easily add iterations (cut and
paste)
but be warned, that by doing that the number of cubes, will grow
exponentially, so will the time needed to render.

best of luck with you next projects.
K



"Yadgar" <yad### [at] tiscalinetde> wrote in message
news:3CB7F62D.30A4DABB@tiscalinet.de...
> High!
>
> K schrieb:
>
> > here is your source,
> > I tried to improve it for you.
> >
> > K
> >
>
> I looked it up and tried it out... awesome! But how is it possible?
> Shouldn't each new cb2 definition override the previous one?
>
> Eager to learn,
>
> Yadgar
>
> Now playing: Chip Meditation (Software)
>


Post a reply to this message

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