G+Smo  25.01.0
Geometry + Simulation Modules
 
Loading...
Searching...
No Matches
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.
 
const std::vector< T > & getLambdas (const size_t i) const
 Get vector of lambdas.
 
 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()

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

Constructor.

Parameters
meshInfosurface mesh (as in the parent class)
stitchIndicesindices of the vertices forming the stitch
[out]correctionsa reference to m_corrections of gsPeriodicStitch that gets filled here
parametrizationMethodparametrization method (as in the parent class)

Member Function Documentation

◆ computeCorrections()

template<class T >
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

◆ getBoundaryCorners()

template<class T >
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

◆ getLambdas()

template<class T >
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