Added normal computation for the visibility mesh

This commit is contained in:
Gianpaolo Palma 2018-02-23 16:11:58 +01:00
parent dbd47ab70b
commit c63bb93163
1 changed files with 3 additions and 1 deletions

View File

@ -398,7 +398,7 @@ public:
{
visible.vert[i].P() = m.vert[ind].P();
m.vert[ind].SetS();
m.vert[ind].C() = Color4b::LightBlue;
//m.vert[ind].C() = Color4b::LightBlue;
selCnt++;
}
}
@ -416,6 +416,8 @@ public:
tri::Allocator<CHMesh>::CompactEveryVector(visible);
tri::Clean<CHMesh>::FlipMesh(visible);
tri::UpdateNormal<CHMesh>::PerFaceNormalized(visible);
tri::UpdateNormal<CHMesh>::PerVertexNormalized(visible);
}
};