Commit 2d5fab40 authored by Philip Trettner's avatar Philip Trettner
Browse files

fixed add_face for self-adjacent faces

parent f8fc1aad
......@@ -87,6 +87,10 @@ inline face_index low_level_api_mutable::add_face(const halfedge_index* half_loo
face_of(h0) = fidx;
}
// set up face data
// BEFORE fixing boundary states
halfedge_of(fidx) = half_loop[0];
// fix boundary states
for (auto i = 0; i < vcnt; ++i)
{
......@@ -102,9 +106,6 @@ inline face_index low_level_api_mutable::add_face(const halfedge_index* half_loo
fix_boundary_state_of(f);
}
// set up face data
halfedge_of(fidx) = half_loop[0];
// fix new face
fix_boundary_state_of(fidx);
......
Supports Markdown
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