mirror of https://github.com/CGAL/cgal
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:
parent
be42e0fbe8
commit
8ccce4c536
|
|
@ -1355,15 +1355,16 @@ private:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else // no need for a Steiner point, carve through and continue
|
||||||
{
|
{
|
||||||
// tag neighbor as OUTSIDE
|
// tag neighbor as OUTSIDE
|
||||||
neighbor->is_outside() = true;
|
neighbor->is_outside() = true;
|
||||||
|
|
||||||
// for each finite facet of neighbor, push it to the queue
|
// 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);
|
push_facet(neighbor_f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue