fix weight for vertex-vertex snapping

This commit is contained in:
Sébastien Loriot 2021-09-27 19:46:14 +02:00
parent b16c4707cc
commit 542d3603be
1 changed files with 1 additions and 1 deletions

View File

@ -599,7 +599,7 @@ std::size_t snap_vertices_two_way(const HalfedgeRange_A& halfedge_range_A,
const FT tol_t = uv_b->second;
CGAL_assertion(tol_s != FT(0) || tol_t != FT(0));
const FT lambda = tol_t / (tol_s + tol_t);
const FT lambda = tol_s / (tol_s + tol_t);
const Point new_p = get(vpm_A, va) + lambda * (get(vpm_B, vb) - get(vpm_A, va));
#ifdef CGAL_PMP_SNAP_DEBUG_PP
std::cout << "new position of " << va << " " << vb << " --> " << new_p << std::endl;