POV-Ray : Newsgroups : povray.advanced-users : Direct stochastic tiling : Re: Direct stochastic tiling Server Time
9 May 2025 06:06:12 EDT (-0400)
  Re: Direct stochastic tiling  
From: kurtz le pirate
Date: 23 Sep 2023 04:47:00
Message: <650ea604$1@news.povray.org>
On 23/09/2023 01:30, Bald Eagle wrote:

> 
> One thing that I did notice is that I'm splicing out array entries until I have
> an empty array.
> 
> That was triggering an invalid array size error, which I fixed / worked around
> by doing:
> 
> #if (newSize <= 0)
>   #local tmpArray = array;
>  #else
>   #local tmpArray = array[newSize]
>  #end
> 
> and
> 
> #if (newSize <= 0)
>   #declare thisArray = array;
>  #else
>   #declare thisArray = array[newSize]
>  #end
> 
> 
> Maybe do some further testing and see what you think, then update that last
> macro.
> 


AAs always, that's a very good remark on your part.

I've never thought about the cases where the arrays are empty.

I'm going to apply your suggestions, correct my macros and
run more in-depth tests.







-- 
Kurtz le pirate
Compagnie de la Banquise


Post a reply to this message

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