Wildmeshing Toolkit
Loading...
Searching...
No Matches
Public Attributes | List of all members
wmtk::components::tracking::SlimElement Struct Reference

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
 

Detailed Description

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.


The documentation for this struct was generated from the following file: