Fix Regenerate ranges of font

This commit is contained in:
Filip Sykala 2021-10-14 14:56:24 +02:00
parent f2e61f295f
commit 867c1bd2e0
3 changed files with 59 additions and 30 deletions

View file

@ -160,6 +160,7 @@ void Triangulation::remove_outer(Indices &indices, const HalfEdges &half_edges)
if (half_edges.find(he) != half_edges.end())
is_border = true;
else {
// half edge already exists
assert(edge2triangle.find(he) == edge2triangle.end());
edge2triangle[he] = index;
}