diff --git a/library/PolyVoxCore/include/PolyVoxCore/Region.h b/library/PolyVoxCore/include/PolyVoxCore/Region.h index 1d9f162e..45b86d60 100644 --- a/library/PolyVoxCore/include/PolyVoxCore/Region.h +++ b/library/PolyVoxCore/include/PolyVoxCore/Region.h @@ -65,6 +65,10 @@ namespace PolyVox /// Inequality Operator. bool operator!=(const Region& rhs) const; + int32_t getLowerX(void) const; + int32_t getLowerY(void) const; + int32_t getLowerZ(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 c738740b..834a4f77 100644 --- a/library/PolyVoxCore/source/Region.cpp +++ b/library/PolyVoxCore/source/Region.cpp @@ -92,6 +92,21 @@ namespace PolyVox return !(*this == rhs); } + int32_t Region::getLowerX(void) const + { + return m_iLowerX; + } + + int32_t Region::getLowerY(void) const + { + return m_iLowerY; + } + + int32_t Region::getLowerZ(void) const + { + return m_iLowerZ; + } + Vector3DInt32 Region::getLowerCorner(void) const { return Vector3DInt32(m_iLowerX, m_iLowerY, m_iLowerZ);