From a7a90a03a1401c3bf76b09adb36f9fc13898fefa Mon Sep 17 00:00:00 2001 From: David Williams Date: Sun, 28 Jun 2009 10:59:22 +0000 Subject: [PATCH] Work on LOD system. --- library/PolyVoxCore/include/Region.h | 1 - library/PolyVoxCore/source/Region.cpp | 7 ------- 2 files changed, 8 deletions(-) diff --git a/library/PolyVoxCore/include/Region.h b/library/PolyVoxCore/include/Region.h index 69f7d467..e8542a2b 100644 --- a/library/PolyVoxCore/include/Region.h +++ b/library/PolyVoxCore/include/Region.h @@ -37,7 +37,6 @@ namespace PolyVox const Vector3DInt16& getLowerCorner(void) const; const Vector3DInt16& getUpperCorner(void) const; - const Vector3DInt16& getCentre(void) const; void setLowerCorner(const Vector3DInt16& v3dLowerCorner); void setUpperCorner(const Vector3DInt16& v3dUpperCorner); diff --git a/library/PolyVoxCore/source/Region.cpp b/library/PolyVoxCore/source/Region.cpp index 877c1c87..32641dd1 100644 --- a/library/PolyVoxCore/source/Region.cpp +++ b/library/PolyVoxCore/source/Region.cpp @@ -24,13 +24,6 @@ namespace PolyVox return m_v3dUpperCorner; } - const Vector3DInt16& Region::getCentre(void) const - { - Vector3DInt32 v3dMidpoint = static_cast(m_v3dLowerCorner) + static_cast(m_v3dUpperCorner); - v3dMidpoint = v3dMidpoint / static_cast(2); - return m_v3dLowerCorner + static_cast(v3dMidpoint); - } - void Region::setLowerCorner(const Vector3DInt16& v3dLowerCorner) { m_v3dLowerCorner = v3dLowerCorner;