Add a comment

This commit is contained in:
Mael Rouxel-Labbé 2024-02-28 13:34:48 +01:00
parent c39acf7d85
commit 2b8bb720c7
1 changed files with 1 additions and 1 deletions

View File

@ -180,9 +180,9 @@ bool cell_position_QEM(const typename Domain::Cell_descriptor& c,
v_svd = x_hat + svd.solve(rhs - A * x_hat);
// bounding box
if(constrain_to_cell)
{
// @todo clamping back doesn't necessarily yield the optimal position within the cell
v_svd[0] = std::clamp<FT>(v_svd[0], x_min, x_max);
v_svd[1] = std::clamp<FT>(v_svd[1], y_min, y_max);
v_svd[2] = std::clamp<FT>(v_svd[2], z_min, z_max);