Correctness improvements to surface extractor.

This commit is contained in:
David Williams
2009-06-04 23:06:14 +00:00
parent b0671cee8a
commit 6fdb11ebf4
2 changed files with 76 additions and 34 deletions

View File

@ -44,6 +44,7 @@ namespace PolyVox
POLYVOX_SHARED_PTR<IndexedSurfacePatch> extractSurfaceForRegion(Region region);
private:
uint8_t m_uLodLevel;
uint8_t m_uStepSize;
@ -79,22 +80,27 @@ namespace PolyVox
uint32_t m_uNoOfOccupiedCells;
inline uint32_t getIndex(uint32_t x, uint32_t y)
{
return x + (y * (m_uRegionWidth+1));
}
IndexedSurfacePatch* m_ispCurrent;
Vector3DFloat m_v3dRegionOffset;
uint16_t m_uScratchPadWidth;
uint16_t m_uScratchPadHeight;
Region m_Region;
Region m_UncroppedRegion;
Region m_croppedVolume;
Region regSlice0;
Region regSlice1;
uint16_t m_uRegionWidth;
uint16_t m_uRegionHeight;
inline uint32_t getIndex(uint32_t x, uint32_t y)
{
return x + (y * m_uScratchPadWidth);
}
template<uint8_t uLodLevel>
void extractSurfaceImpl(void);