Edgehash: Improve magic number for hashing

Gives consistently better results. Tested with wide variety of meshes.
This commit is contained in:
2014-07-15 13:06:33 +10:00
parent dbc79e7aba
commit fa8ff63b48

View File

@@ -93,7 +93,7 @@ BLI_INLINE unsigned int edgehash_keyhash(EdgeHash *eh, unsigned int v0, unsigned
{
BLI_assert(v0 < v1);
return ((v0 * 39) ^ (v1 * 31)) % eh->nbuckets;
return ((v0 * 65) ^ (v1 * 31)) % eh->nbuckets;
}
/**