- Bugfix: IFC loader tested squared length against non-squared epsilon in RemoveDegenerates()

This commit is contained in:
ulf
2015-03-03 15:56:09 +01:00
parent b71ded1ad0
commit 0cdc528e01
2 changed files with 2 additions and 2 deletions

View File

@@ -149,7 +149,7 @@ void TempMesh::RemoveDegenerates()
for (std::vector<unsigned int>::iterator it = vertcnt.begin(); it != vertcnt.end(); ++inor) {
const unsigned int pcount = *it;
if (normals[inor].SquareLength() < 1e-5f) {
if (normals[inor].SquareLength() < 1e-10f) {
it = vertcnt.erase(it);
vit = verts.erase(vit, vit + pcount);