Dynamically allocating transient geometry

New Message Reply Date view Thread view Subject view Author view

Manfred Weiler (mdweiler@immd9.informatik.uni-erlangen.de)
Mon, 28 Jun 1999 13:09:49 +0000


Some days ago someone proposed to dynamically allocate
(parts of) the transient geometry, this should work because
the voIndexedFaceSets will reallocate in case of overflow.

I tried to do so by initializing each voIndexedFaceSet with

  my_Data.aPolygonSetArray[j1][j2] = new
                voIndexedFaceSet(my_Data.allVertexData,
                  1); // boundFaceCount(tetraCount));

expecting that each faceset being reallocated to the needed
size during polygonalization. But this didn't work.
Nearly allways the programm exited with core dump.
I inspected some of the voIndexedFaceSets an found out that
in some cases the "count" member was bigger than "max_count".

Does the reallocation really work correctly?

        Manfred.


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Nov 01 1999 - 14:02:51 PST