Skip to content

Commit

Permalink
Removed automatic removal of mesh duplicates based on vtx count
Browse files Browse the repository at this point in the history
  • Loading branch information
adnanmunawar committed Mar 11, 2024
1 parent f85f44b commit 6c6a4bc
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions ambf_framework/afFramework.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -464,14 +464,14 @@ bool afVisualUtils::createFromAttribs(afVisualAttributes *attribs, cMultiMesh *m
if (attribs->m_meshRemoveDuplicates == afStatusFlag::TRUE){
mesh->removeDuplicateVertices();
}
else if (attribs->m_meshRemoveDuplicates == afStatusFlag::UNDEFINED){
for (auto m : *(mesh->m_meshes)){
if (m->getNumVertices() > 10000){
double wd = 0.;
m->removeDuplicateVertices(wd);
}
}
}
// else if (attribs->m_meshRemoveDuplicates == afStatusFlag::UNDEFINED){
// for (auto m : *(mesh->m_meshes)){
// if (m->getNumVertices() > 10000){
// double wd = 0.;
// m->removeDuplicateVertices(wd);
// }
// }
// }
mesh->setUseDisplayList(true);
}
else{
Expand Down

0 comments on commit 6c6a4bc

Please sign in to comment.