From beee8850e9a55788c84b84339678ae17ba2f36de Mon Sep 17 00:00:00 2001 From: David Williams Date: Sat, 24 Nov 2012 10:41:07 +0100 Subject: [PATCH] Added getters for upper corner (trivial commit - part of git testing). --- library/PolyVoxCore/include/PolyVoxCore/Region.h | 4 ++++ library/PolyVoxCore/source/Region.cpp | 15 +++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/library/PolyVoxCore/include/PolyVoxCore/Region.h b/library/PolyVoxCore/include/PolyVoxCore/Region.h index 45b86d60..1e20f5b7 100644 --- a/library/PolyVoxCore/include/PolyVoxCore/Region.h +++ b/library/PolyVoxCore/include/PolyVoxCore/Region.h @@ -69,6 +69,10 @@ namespace PolyVox int32_t getLowerY(void) const; int32_t getLowerZ(void) const; + int32_t getUpperX(void) const; + int32_t getUpperY(void) const; + int32_t getUpperZ(void) const; + Vector3DInt32 getLowerCorner(void) const; Vector3DInt32 getUpperCorner(void) const; diff --git a/library/PolyVoxCore/source/Region.cpp b/library/PolyVoxCore/source/Region.cpp index 834a4f77..aa6bb957 100644 --- a/library/PolyVoxCore/source/Region.cpp +++ b/library/PolyVoxCore/source/Region.cpp @@ -107,6 +107,21 @@ namespace PolyVox return m_iLowerZ; } + int32_t Region::getUpperX(void) const + { + return m_iUpperX; + } + + int32_t Region::getUpperY(void) const + { + return m_iUpperY; + } + + int32_t Region::getUpperZ(void) const + { + return m_iUpperZ; + } + Vector3DInt32 Region::getLowerCorner(void) const { return Vector3DInt32(m_iLowerX, m_iLowerY, m_iLowerZ);