Work removing POLYVOX_REGION_SIDE_LENGTH from decimated surface extractor.

This commit is contained in:
David Williams
2009-03-23 23:02:07 +00:00
parent 02319db9dc
commit 152717e904
6 changed files with 69 additions and 60 deletions

View File

@ -64,6 +64,16 @@ namespace PolyVox
m_v3dUpperCorner.setZ((std::min)(m_v3dUpperCorner.getZ(), other.m_v3dUpperCorner.getZ()));
}
int32 Region::depth(void) const
{
return m_v3dUpperCorner.getZ() - m_v3dLowerCorner.getZ();
}
int32 Region::height(void) const
{
return m_v3dUpperCorner.getY() - m_v3dLowerCorner.getY();
}
void Region::shift(const Vector3DInt32& amount)
{
m_v3dLowerCorner += amount;
@ -84,4 +94,9 @@ namespace PolyVox
{
return m_v3dUpperCorner - m_v3dLowerCorner;
}
int32 Region::width(void) const
{
return m_v3dUpperCorner.getX() - m_v3dLowerCorner.getX();
}
}