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

Detailed Description

template<class T>
class gismo::gsPeriodicStitch< T >::Neighbourhood

Modification of the corresponding class from gsParametrization<T>. Given the indices of the stitch vertices, a matrix of corrections is produced according to vertices being neighbours across the interface.

+ Inheritance diagram for gsPeriodicStitch< T >::Neighbourhood:
+ Collaboration diagram for gsPeriodicStitch< T >::Neighbourhood:

Public Member Functions

const std::vector< index_tgetBoundaryCorners (const size_t method, const T range=0.1, const size_t number=4) const
 Get boundary corners depending on the method. More...
 
const std::vector< T > & getLambdas (const size_t i) const
 Get vector of lambdas. More...
 
 Neighbourhood (const gsHalfEdgeMesh< T > &meshInfo, const std::vector< size_t > &stitchIndices, gsSparseMatrix< int > &corrections, const size_t parametrizationMethod=2)
 

Protected Member Functions

std::vector< size_t > computeCorrections (const std::vector< size_t > &stitchIndices, const LocalNeighbourhood &localNeighbourhood) const
 

Constructor & Destructor Documentation

Neighbourhood ( const gsHalfEdgeMesh< T > &  meshInfo,
const std::vector< size_t > &  stitchIndices,
gsSparseMatrix< int > &  corrections,
const size_t  parametrizationMethod = 2 
)
explicit

Constructor.

Parameters
meshInfo,:surface mesh (as in the parent class)
stitchIndices,:indices of the vertices forming the stitch
[out]corrections,:a reference to m_corrections of gsPeriodicStitch that gets filled here
parametrizationMethod,:parametrization method (as in the parent class)

Member Function Documentation

std::vector< size_t > computeCorrections ( const std::vector< size_t > &  stitchIndices,
const LocalNeighbourhood localNeighbourhood 
) const
protected

For a stitch vertex finds its neighbours across the interface.

Parameters
stitchIndicesindices of the stitch vertices
localNeighbourhoodlocal neighbourhood of the vertex in question
const std::vector< index_t > getBoundaryCorners ( const size_t  method,
const T  range = 0.1,
const size_t  number = 4 
) const
inherited

Get boundary corners depending on the method.

This method returns a vector with the indices of the boundary corners. ...........................................................................................................

Returns
vector of boundary corners
const std::vector< T > & getLambdas ( const size_t  i) const
inherited

Get vector of lambdas.

This method returns a vector that stores the lambdas.

Returns
vector of lambdas