History

Could extra comments.

Andrzej Kapolka committed 12 years ago

Commit 681bb601 parent 1cbbcda1 file · +2 −2Browse files

Showing the changes to interface/src/MetavoxelSystem.cpp (1 of 1 file). Show all

Unified · Split

interface/src/MetavoxelSystem.cpp+2−2
@@ -1985,11 +1985,11 @@ int VoxelAugmentVisitor::visit(MetavoxelInfo& info) { · 1984 unmodified lines
19851985 }
19861986 }
19871987
1988− // compute the pseudo-inverse, ataplus
1988+ // compute the pseudo-inverse, ataplus, and use to find the minimizing solution
19891989 glm::mat3 ataplus = glm::transpose(u) * d * u;
1990−
19911990 glm::vec3 solution = (ataplus * atrans * b) + center;
19921991
1992+ // make sure it doesn't fall beyond the cell boundaries
19931993 center = glm::clamp(solution, 0.0f, 1.0f);
19941994
19951995 if (totalWeight > 0.0f) {