imageworks / Field3D

[NO LONGER MAINTAINED] A library for storing voxel data on disk and in memory.
https://github.com/imageworks/Field3D/wiki/Field3D-Home
BSD 3-Clause "New" or "Revised" License
304 stars 72 forks source link

Improvements to SparseField #28

Closed magnusw closed 12 years ago

magnusw commented 12 years ago

totalLoadedBlocks() sometimes has issues where the vector lengths don't match up. SparseField::setupBlocks() should use swap-clear to truly deallocate data. SparseField::clear() shouldn't use m_blocks.end() in loop comparison.

magnusw commented 12 years ago

Addressed with above pull request.