|
|
The code is basicly build up like this:
[camera, background etc.]
[make a box]
[make a double while loop which creates shapes to be cut out of the box]
[make the shapes, and move them into position, using the while loop variable
(O, and rotate randomly)]
[end the while loops]
[place a sphere for no reason]
While loops can be used in many ways, i mainly use them to create a large
amount of the same objects (I like doing that, don't know why)
Is that (double while loop) what you mean by "pseudo-code"?
Greetings,
JWV (it's with a W :-))
"incognito" <nomail@nomail> wrote in message
news:web.4123a1198439f8c655d024bf0@news.povray.org...
> Hi,
>
> I was wondering if there was a general algorithm that you based this on
out
> on the Web somewhere or if this is just something you came up with? This
is
> only my second trace in POV-ray and if I could see pseudocode, that would
> probably help me to understand better so that I can orient it differently
> for my purpose.
>
> If you came up w/this yourself, don't worry about it.
>
> Thanks a lot.
>
> "incognito" <nomail@nomail> wrote:
> > Sounds good.
> >
> > Thanks again.
> >
> > "JWV" <jwv|at|planet.nl> wrote:
> > > Hi,
> > >
> > > Well, it is possible to make edge pieces, but my image was just meant
to
> > > illustrate the method to create different pieces. As you can see in
the
> > > code, the puzzle does not consist out of sepperate pieces, but it's
one big
> > > box, with lines cut of it. You can make the box 1 unit bigger at each
side,
> > > to create the edge pieces. Of course you should tweak the while()
loops for
> > > the cut-outs, but i'll leave that for you :-P.
> > >
> > > JWV
> > > "incognito" <nomail@nomail> wrote in message
> > > news:web.41226795315dc6d455d024bf0@news.povray.org...
> > > > Hi,
> > > >
> > > > I thought I would start another thread on this topic since the order
of
> > > the
> > > > other one was becoming difficult to follow. I was wondering if the
> > > internal
> > > > pieces on the left and top edges are intentional or if it is just
too
> > > > difficult to make them all edge pieces on those sides?
> > > >
> > > > Thank you.
> > > >
> > > >
>
>
>
>
Post a reply to this message
|
|