More work on lod decimation.

This commit is contained in:
David Williams
2010-02-03 22:47:08 +00:00
parent 801c7f5c7f
commit d238da5fc9
5 changed files with 98 additions and 41 deletions

View File

@@ -449,11 +449,11 @@ namespace PolyVox
}
/*Returns true if every bit which is set in 'a' is also set in 'b'. The reverse does not need to be true.*/
bool IndexedSurfacePatch::isSubset(std::bitset<4> a, std::bitset<4> b)
bool IndexedSurfacePatch::isSubset(std::bitset<7> a, std::bitset<7> b)
{
bool result = true;
for(int ct = 0; ct < 4; ct++)
for(int ct = 1; ct < 7; ct++) //Start at '1' to skip material flag
{
if(a.test(ct))
{