POV-Ray : Newsgroups : povray.unofficial.patches : mesh2 question : Re: mesh2 question Server Time
2 Sep 2024 18:18:17 EDT (-0400)
  Re: mesh2 question  
From: Nieminen Mika
Date: 11 Aug 1999 02:59:07
Message: <37b11f3b@news.povray.org>
Margus Ramst <mar### [at] peakeduee> wrote:
: So the question: is specifying the number of elements really necessary?

  I think that the idea is that when you know the number of triangles, you
can allocate a memory block of that size (ie. just one array). This way
you save quite lot of memory (you don't need to waste memory for extra
information put into the nodes of a binary tree and the memory block the
system has to keep to control the allocations and deallocations). Handling
the triangles is also faster since you can directly index them instead
of having to walk through a tree structure.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

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