POV-Ray : Newsgroups : povray.binaries.images : Wooden Trains : Re: Wooden Trains Server Time
1 Aug 2024 22:15:57 EDT (-0400)
  Re: Wooden Trains  
From: scott
Date: 21 May 2008 06:30:52
Message: <4833f9dc$1@news.povray.org>
>  Of course the problem becomes with bifurcating tracks: How to specify
> how the track continues with the other bifurcation? Maybe the include
> file could internally keep track of what it has constructed already, and
> the macro above could take an index value which tells it "attach the
> track defined by this array to the existing track, at the bifurcation at
> place n", or something similar.

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.


Post a reply to this message

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