Yair Kurzion (yair++at++polygon.engr.sgi.com)
Tue, 26 Jan 1999 12:43:51 -0800 (PST)
> I would like to grow my array by doubeling it every time I exceed it's
> current size. There doesn't seem to be a way to get the current size
> from the pfVec3*. I also don't see a way to store the size in the
> current copy of the GeoSet.
I assume your CoordArray was allocated by pfMalloc (It should be). Therefore,
you can get its pfMemory and inquire its size:
pfMemory::getMemory(CoordArray) -> getSize()
or
pfGetSize(pfGetMemory(CoordArray))
You can take a look at 'man pfMemory' for more information about these calls.
-yair
--
\_________ \_____ \__ \__ \_____ Yair Kurzion
\_________ \_____ \__ \__ \_____ yair++at++sgi.com
\__ \__ \____\__ \__ http://reality.sgi.com/yair
\__ \__ \__ Work: (650) 933-6502
\__ \__ \__ Home: (408) 226-9771
\__ \__ \__
This archive was generated by hypermail 2.0b2 on Tue Jan 26 1999 - 12:43:53 PST