You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In MeshletGenerator/Generation.cpp, the meshletize template function.
After you enter the area of AddToMeshlet()==True , you refresh the candidate and remark the scores.
An error occur that there is a situation that is meshlet is not full but the candidate has been empty,(which often occurs in the seed triangle is in the clusters has been clustered), you ignore the situation and run
/*
if (candidates.empty())
{
while (triIndex < triCount && checklist[triIndex])
++triIndex;
if (triIndex == triCount)
break;
candidates.push_back(std::make_pair(triIndex, 0.0f));
candidateCheck.insert(triIndex);
}
*/
so that the meshlet was added with a new seed triangle which is not adjcent to the meshlet.
so you have to change that line /* if (IsMeshletFull(maxVerts, maxPrims, *curr)) */
into if (IsMeshletFull(maxVerts, maxPrims, *curr)||candidate.empty())
The text was updated successfully, but these errors were encountered:
In MeshletGenerator/Generation.cpp, the meshletize template function.
After you enter the area of AddToMeshlet()==True , you refresh the candidate and remark the scores.
An error occur that there is a situation that is meshlet is not full but the candidate has been empty,(which often occurs in the seed triangle is in the clusters has been clustered), you ignore the situation and run
/*
if (candidates.empty())
{
while (triIndex < triCount && checklist[triIndex])
++triIndex;
*/
so that the meshlet was added with a new seed triangle which is not adjcent to the meshlet.
so you have to change that line /* if (IsMeshletFull(maxVerts, maxPrims, *curr)) */
into if (IsMeshletFull(maxVerts, maxPrims, *curr)||candidate.empty())
The text was updated successfully, but these errors were encountered: