Added normal computation for the visibility mesh
This commit is contained in:
parent
dbd47ab70b
commit
c63bb93163
|
@ -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);
|
||||
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue