LowPassFilter no longer requires convertToDensity() but instead assumes voxel types define operator+=, operator/=, etc.

This commit is contained in:
unknown
2012-07-04 16:06:43 +02:00
parent 63c5d510d1
commit ec8b2f374c
4 changed files with 60 additions and 30 deletions

View File

@ -76,6 +76,18 @@ namespace PolyVox
return !(*this == rhs);
}
Density<Type>& operator+=(const Density<Type>& rhs)
{
m_uDensity += rhs.m_uDensity;
return *this;
}
Density<Type>& operator/=(uint32_t rhs)
{
m_uDensity /= rhs;
return *this;
}
DensityType getDensity() const throw() { return m_uDensity; }
//MaterialType getMaterial() const throw() { return 1; }