POV-Ray : Newsgroups : povray.general : Spline problem : Re: Spline problem Server Time
7 Aug 2024 03:24:05 EDT (-0400)
  Re: Spline problem  
From: Christopher James Huff
Date: 19 Jan 2002 19:19:30
Message: <chrishuff-240E57.19202719012002@netplex.aussie.org>
In article <3c4a05f7@news.povray.org>, Warp <war### [at] tagpovrayorg> 
wrote:

>   Because it would disallow making automatic generation of long lists of
> items (number, vectors...) in such a simple and versatile way as currently.
>   Currently it's just enough to create the list of items in a loop, without
> having to take into account that there should be one comma less than the
> number of items.
>   (Note that the problem with the solution you suggested is that there might
> be cases where the loop is not executed even once, that is, no items are
> created at all.)

In this case it's an extra line and some math in the loop. The cases you 
mention aren't that common, and you can still put a comma on every line 
but the last, it's just a little more complex. Not by very much, 
either...just by one #if() statement in the mix.

-- 
 -- 
Christopher James Huff <chr### [at] maccom>


Post a reply to this message

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