diff --git a/src/mesh/mesh_to_curve.cpp b/src/mesh/mesh_to_curve.cpp index 2879f77..5f65669 100644 --- a/src/mesh/mesh_to_curve.cpp +++ b/src/mesh/mesh_to_curve.cpp @@ -453,7 +453,8 @@ std::vector mesh_contour_to_curves( cur = next; } if (comp.size() >= 3) { - // Don't add closing duplicate — LS fitting handles closure internally + // Close the loop for fitting + comp.push_back(comp[0]); components.push_back(std::move(comp)); } }