POV-Ray : Newsgroups : povray.beta-test : Can't undefine defined entry of array : Re: Can't undefine defined entry of array Server Time
2 Nov 2024 03:15:57 EDT (-0400)
  Re: Can't undefine defined entry of array  
From: Tom Melly
Date: 22 Jan 2002 09:43:58
Message: <3c4d7aae$1@news.povray.org>

news:ediq4ukcihbillqkpjjtsh051m2nb4o2lf@4ax.com...
> On Tue, 22 Jan 2002 12:12:57 +0100, "Thorsten Froehlich" <tho### [at] trfde>
> wrote:

<snip>

Don't want to comment on whether this is a bug or not, but a possible workaround
for memory usage would be to redefine any unwanted array elements to a simple
case - e.g. if your array contains large objects, redefine unwanted elements to
spheres.

Since the array just stores a pointer, it's the thing pointed to by the pointer
that you want to remove, not the pointer itself. All IMHO BTW.

Also, might it not be more efficient to copy the array elements you want to a
new array of the correct size, and then undef the whole of the old array?


Post a reply to this message

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