Commit ccd228a2 authored by Philip Trettner's avatar Philip Trettner
Browse files

fixed face_fill

parent 483f4652
......@@ -741,10 +741,15 @@ inline face_index Mesh::face_fill(halfedge_index h)
// set face
h_ref.face = f;
// set boundary
// fix face boundary
if (is_boundary(opposite(h)))
f_ref.halfedge = h;
// fix adj face boundary
auto adj_face = halfedge(opposite(h)).face;
if (adj_face.is_valid())
fix_boundary_state_of(adj_face);
// advance
h = h_ref.next_halfedge;
} while (h != h_begin);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment