|
 |
Isn't mesh2 converted to mesh internally?
If so, does what you said still apply?
Margus
Nieminen Mika wrote:
>
> Margus Ramst <mar### [at] peak edu ee> 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
|
 |