G+Smo  24.08.0
Geometry + Simulation Modules
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gsParametrization< T >::LocalParametrization Class Reference

Detailed Description

template<class T>
class gismo::gsParametrization< T >::LocalParametrization

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
 

Constructor & Destructor Documentation

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.

Parameters
[in]meshInfogsHalfEdgeMesh object
[in]localNeighbourhoodlocal neighbourhood stores the needed information about the neighbours
[in]parametrizationMethodmethod used for parametrization, one can choose between
  1. shape,
  2. uniform,
  3. distance

Member Function Documentation

void calculateLambdas ( const size_t  N,
VectorType &  points 
)
private

Calculate lambdas The lambdas according to Floater's algorithm are calculated.

Parameters
[in]Nconst int - number of vertices of triangle mesh
[in]pointsstd::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.

Returns
lambdas