make sure that points in MC and TMC are identical

This commit is contained in:
Sébastien Loriot 2025-03-26 21:45:09 +01:00
parent 4bc837f51d
commit 08109aa12b
1 changed files with 3 additions and 3 deletions

View File

@ -94,9 +94,9 @@ typename GeomTraits::Point_3 vertex_interpolation(const typename GeomTraits::Poi
CGAL_assertion(mu >= FT(0.0) || mu <= FT(1.0));
// linear interpolation
return point(x_coord(p1) * mu + x_coord(p0) * (FT(1) - mu),
y_coord(p1) * mu + y_coord(p0) * (FT(1) - mu),
z_coord(p1) * mu + z_coord(p0) * (FT(1) - mu));
return point((FT(1) - mu) * x_coord(p0) + mu * x_coord(p1),
(FT(1) - mu) * y_coord(p0) + mu * y_coord(p1),
(FT(1) - mu) * z_coord(p0) + mu * z_coord(p1));
}
// retrieves the values of a cell and return the lookup index