From 78d750a0f27730fc1163f6dda1429e6f648b7a03 Mon Sep 17 00:00:00 2001 From: David Williams Date: Tue, 3 Jun 2014 15:50:30 +0200 Subject: [PATCH] Removed unused 'LodRecord'. --- .../include/PolyVoxCore/CubicSurfaceExtractor.inl | 6 ------ .../PolyVoxCore/MarchingCubesSurfaceExtractor.inl | 6 ------ library/PolyVoxCore/include/PolyVoxCore/Mesh.h | 9 --------- 3 files changed, 21 deletions(-) diff --git a/library/PolyVoxCore/include/PolyVoxCore/CubicSurfaceExtractor.inl b/library/PolyVoxCore/include/PolyVoxCore/CubicSurfaceExtractor.inl index d05a7c57..5e00a572 100644 --- a/library/PolyVoxCore/include/PolyVoxCore/CubicSurfaceExtractor.inl +++ b/library/PolyVoxCore/include/PolyVoxCore/CubicSurfaceExtractor.inl @@ -199,12 +199,6 @@ namespace PolyVox m_meshCurrent->setOffset(m_regSizeInVoxels.getLowerCorner()); m_meshCurrent->removeUnusedVertices(); - m_meshCurrent->m_vecLodRecords.clear(); - LodRecord lodRecord; - lodRecord.beginIndex = 0; - lodRecord.endIndex = m_meshCurrent->getNoOfIndices(); - m_meshCurrent->m_vecLodRecords.push_back(lodRecord); - POLYVOX_LOG_TRACE("Cubic surface extraction took " << timer.elapsedTimeInMilliSeconds() << "ms (Region size = " << m_regSizeInVoxels.getWidthInVoxels() << "x" << m_regSizeInVoxels.getHeightInVoxels() << "x" << m_regSizeInVoxels.getDepthInVoxels() << ")"); diff --git a/library/PolyVoxCore/include/PolyVoxCore/MarchingCubesSurfaceExtractor.inl b/library/PolyVoxCore/include/PolyVoxCore/MarchingCubesSurfaceExtractor.inl index 382dc85a..19968cd6 100644 --- a/library/PolyVoxCore/include/PolyVoxCore/MarchingCubesSurfaceExtractor.inl +++ b/library/PolyVoxCore/include/PolyVoxCore/MarchingCubesSurfaceExtractor.inl @@ -124,12 +124,6 @@ namespace PolyVox m_meshCurrent->setOffset(m_regSizeInVoxels.getLowerCorner()); - m_meshCurrent->m_vecLodRecords.clear(); - LodRecord lodRecord; - lodRecord.beginIndex = 0; - lodRecord.endIndex = m_meshCurrent->getNoOfIndices(); - m_meshCurrent->m_vecLodRecords.push_back(lodRecord); - POLYVOX_LOG_TRACE("Marching cubes surface extraction took " << timer.elapsedTimeInMilliSeconds() << "ms (Region size = " << m_regSizeInVoxels.getWidthInVoxels() << "x" << m_regSizeInVoxels.getHeightInVoxels() << "x" << m_regSizeInVoxels.getDepthInVoxels() << ")"); diff --git a/library/PolyVoxCore/include/PolyVoxCore/Mesh.h b/library/PolyVoxCore/include/PolyVoxCore/Mesh.h index 18537e9e..9403c5d8 100644 --- a/library/PolyVoxCore/include/PolyVoxCore/Mesh.h +++ b/library/PolyVoxCore/include/PolyVoxCore/Mesh.h @@ -38,13 +38,6 @@ freely, subject to the following restrictions: namespace PolyVox { - class LodRecord - { - public: - int beginIndex; - int endIndex; //Let's put it just past the end STL style - }; - template class Mesh { @@ -74,8 +67,6 @@ namespace PolyVox public: std::vector m_vecTriangleIndices; std::vector m_vecVertices; - - std::vector m_vecLodRecords; }; template