G+Smo
24.08.0
Geometry + Simulation Modules
|
Class maintains local parametrization This class represents a local parametrization for a point in the triangle mesh, which is identified by the vertex index. The parametrization is given by the weights lambda(i,j) which is the weight of vertex x(i) regarding x(j) according to Floater's algorithm.
An object gets constructed by a MeshInfo object, a local neighbourhood and a parametrization method. There is a function for returning the lambdas. A local parametrization is outputted by printing it's positiv lambdas.
Public Member Functions | |
const std::vector< T > & | getLambdas () const |
Get lambdas The lambdas are returned. More... | |
LocalParametrization (const gsHalfEdgeMesh< T > &meshInfo, const LocalNeighbourhood &localNeighbourhood, const size_t parametrizationMethod=2) | |
Constructor Using this constructor one needs to input mesh information, a local neighbourhood and a parametrization method. More... | |
Private Member Functions | |
void | calculateLambdas (const size_t N, VectorType &points) |
Calculate lambdas The lambdas according to Floater's algorithm are calculated. More... | |
Private Attributes | |
std::vector< T > | m_lambdas |
lambdas | |
size_t | m_vertexIndex |
vertex index | |
LocalParametrization | ( | const gsHalfEdgeMesh< T > & | meshInfo, |
const LocalNeighbourhood & | localNeighbourhood, | ||
const size_t | parametrizationMethod = 2 |
||
) |
Constructor Using this constructor one needs to input mesh information, a local neighbourhood and a parametrization method.
[in] | meshInfo | gsHalfEdgeMesh object |
[in] | localNeighbourhood | local neighbourhood stores the needed information about the neighbours |
[in] | parametrizationMethod | method used for parametrization, one can choose between
|
|
private |
Calculate lambdas The lambdas according to Floater's algorithm are calculated.
[in] | N | const int - number of vertices of triangle mesh |
[in] | points | std::vector<Point2D>& - two-dimensional points that have same angles ratio as mesh neighbours |
const std::vector< T > & getLambdas | ( | ) | const |
Get lambdas The lambdas are returned.