|
Wildmeshing Toolkit
|
A triangle of a 2D layout and the shape it should keep. More...
#include <slim2d.hpp>
Public Attributes | |
| std::array< int, 3 > | v |
| Eigen::Matrix2d | rest_inv = Eigen::Matrix2d::Identity() |
| The inverse of the rest edge matrix [x1 - x0, x2 - x0]. | |
| double | weight = 0 |
A triangle of a 2D layout and the shape it should keep.
Its energy is the symmetric Dirichlet energy |J|^2 + |J^-1|^2 of the map J from the rest triangle to its layout, times weight. A rest is given per element, not per vertex, so two elements sharing a vertex may want different shapes of it – the same outline vertex is in a patch before an edit and in the patch after it.