From 6a267b5b8d1f585187a54fe7996c93cb51007466 Mon Sep 17 00:00:00 2001 From: David Williams Date: Sun, 25 Sep 2011 12:52:00 +0100 Subject: [PATCH] Fixed some compile warnings (thanks to Gnurfos). --- library/PolyVoxCore/include/PolyVoxCore/SurfaceExtractor.inl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/library/PolyVoxCore/include/PolyVoxCore/SurfaceExtractor.inl b/library/PolyVoxCore/include/PolyVoxCore/SurfaceExtractor.inl index 24b8178d..c206c850 100644 --- a/library/PolyVoxCore/include/PolyVoxCore/SurfaceExtractor.inl +++ b/library/PolyVoxCore/include/PolyVoxCore/SurfaceExtractor.inl @@ -27,8 +27,8 @@ namespace PolyVox SurfaceExtractor::SurfaceExtractor(VolumeType* volData, Region region, SurfaceMesh* result) :m_volData(volData) ,m_sampVolume(volData) - ,m_regSizeInVoxels(region) ,m_meshCurrent(result) + ,m_regSizeInVoxels(region) { //m_regSizeInVoxels.cropTo(m_volData->getEnclosingRegion()); m_regSizeInCells = m_regSizeInVoxels; @@ -524,7 +524,6 @@ namespace PolyVox //Current position const uint32_t uXRegSpace = m_sampVolume.getPosX() - m_regSizeInVoxels.getLowerCorner().getX(); const uint32_t uYRegSpace = m_sampVolume.getPosY() - m_regSizeInVoxels.getLowerCorner().getY(); - const uint32_t uZRegSpace = m_sampVolume.getPosZ() - m_regSizeInVoxels.getLowerCorner().getZ(); //Determine the index into the edge table which tells us which vertices are inside of the surface uint8_t iCubeIndex = pPreviousBitmask[uXRegSpace][uYRegSpace]; @@ -618,4 +617,4 @@ namespace PolyVox }//For each cell } } -} \ No newline at end of file +}