Re: Problems with getVoxelAddr()/ setVoxel()

New Message Reply Date view Thread view Subject view Author view

From: Christoph Ramseyer (cramseye@stud.ee.ethz.ch)
Date: 08/11/2000 09:15:04


Easy solution...(for a beginners mistake...)

Well, the pointer

        aBrickSet

in eg.

        //read voxel
         
        valueGet = (GLubyte*)aBrickSet->getVoxelAddr(2,2,2);

actually was a NULL pointer. I was not aware of the fact, that the
operator

        ()
 
of

        voBrickSetCollectionIterator

returns NULL when the whole collection was traversed.

The following does the job for my case:

valueGet = (GLubyte*)
aVolume->getCurrentBrickSet()->getVoxelAddr(2,2,2);

or
        
valueGet = (GLubyte*)aVolume->getVoxelAddr(2,2,2);

Chris


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Fri Aug 11 2000 - 14:42:41 PDT