POV-Ray : Newsgroups : povray.unofficial.patches : mesh2 question : Re: mesh2 question Server Time
2 Sep 2024 18:14:04 EDT (-0400)
  Re: mesh2 question  
From: Margus Ramst
Date: 11 Aug 1999 14:50:47
Message: <37B1C608.C7113280@peak.edu.ee>
Isn't mesh2 converted to mesh internally?
If so, does what you said still apply?

Margus

Nieminen Mika wrote:
> 
> 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.