Re: pfFlux question

New Message Reply Date view Thread view Subject view Author view

Yair Kurzion (yair++at++polygon.engr.sgi.com)
Tue, 26 Jan 1999 12:43:51 -0800 (PST)


> My fluxed GeoSet has several copies of my CoordArray, like you
> suggested. When I lock my GeoSet, I can modify/realloc my CoordArray,
> also like you said. My question now is: How do I know the size of the
> CoordArray in my locked GeoSet?

> 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
       \__          \__    \__             

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Tue Jan 26 1999 - 12:43:53 PST

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.