Avoid one useless facet check

This doesn't bring any speed-up because it was a very fast exit
in push_facet(): the neighbor was necessarily outside (since we
come from it), and we are done.
This commit is contained in:
Mael Rouxel-Labbé 2023-09-29 11:19:52 +02:00
parent be42e0fbe8
commit 8ccce4c536
1 changed files with 4 additions and 3 deletions

View File

@ -1355,15 +1355,16 @@ private:
}
}
}
else
else // no need for a Steiner point, carve through and continue
{
// tag neighbor as OUTSIDE
neighbor->is_outside() = true;
// for each finite facet of neighbor, push it to the queue
for(int i=0; i<4; ++i)
const int mi = m_tr.mirror_index(ch, s);
for(int i=1; i<4; ++i)
{
const Facet neighbor_f = std::make_pair(neighbor, i);
const Facet neighbor_f = std::make_pair(neighbor, (mi+i)&3);
push_facet(neighbor_f);
}
}