Class to construct a list of sides having some common properties. More...

#include <MeshExtract.h>

Public Member Functions

 SideList (Mesh &ms)
 Constructor using a Mesh instance.
 
 ~SideList ()
 Destructor.
 
void selectCode (int code, int dof=1)
 Select sides having a given code for a given degree of freedom.
 
void unselectCode (int code, int dof=1)
 Unselect sides having a given code for a given degree of freedom.
 
size_t getNbSides () const
 Return number of selected sides.
 
void top ()
 Reset list of sides at its top position (Non constant version)
 
void top () const
 Reset list of sides at its top position (Constant version)
 
Sideget ()
 Return pointer to current side and move to next one (Non constant version)
 
Sideget () const
 Return pointer to current side and move to next one (Constant version)
 

Detailed Description

Class to construct a list of sides having some common properties.

This class enables choosing multiple selection criteria by using function select... However, the intersection of these properties must be empty.

Author
Rachid Touzani

Member Function Documentation

◆ selectCode()

void selectCode ( int  code,
int  dof = 1 
)

Select sides having a given code for a given degree of freedom.

Parameters
[in]codeCode that sides share
[in]dofDegree of Freedom label [Default: 1]

◆ unselectCode()

void unselectCode ( int  code,
int  dof = 1 
)

Unselect sides having a given code for a given degree of freedom.

Parameters
[in]codeCode of sides to exclude
[in]dofDegree of Freedom label [Default: 1]