mirror of https://github.com/CGAL/cgal
fix weight for vertex-vertex snapping
This commit is contained in:
parent
b16c4707cc
commit
542d3603be
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue