POV-Ray : Newsgroups : povray.binaries.images : Wooden Trains : Re: Wooden Trains Server Time
1 Aug 2024 22:22:24 EDT (-0400)
  Re: Wooden Trains  
From: Blue Herring
Date: 21 May 2008 10:45:00
Message: <web.48343531b9c4dd0fb05f96f70@news.povray.org>
"scott" <sco### [at] scottcom> wrote:
> Or, within the array you pass, have some special syntax where following the
> "track split" part, you have two lists following that specify the track
> pieces to be attached to each exit of the split.  The two lists could be
> separated by a special character.
>
> eg, if 1-5 are normal pieces, and 6 is the track split piece, you could have
> something like this (using 0 as the special character):
>
> 14231161230444
>
> This would mean that following the 6, you have 123 on one side and 444 on
> the other.
>
> I think nested splits should be possible too.

This is a neat idea.  Structured right, arbitrary nesting should be possible,
basically a tree data structure represented in an array.

In a similar vein, I wonder if arrays of arrays could do something similar.

Thanks for the ideas!

-The Mildly Infamous Blue Herring


Post a reply to this message

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