#include <SMDS_Downward.hxx>
◆ SMDS_Downward()
Generic constructor for all the downward connectivity structures (one per vtk cell type). The static structure for cell dimension is set only once.
- Parameters
-
grid | unstructured grid associated to the mesh. |
nbDownCells | number of downward entities associated to this vtk type of cell. |
- Returns
References getCellDimension().
◆ ~SMDS_Downward()
SMDS_Downward::~SMDS_Downward |
( |
| ) |
|
|
protectedvirtual |
◆ addCell()
int SMDS_Downward::addCell |
( |
int |
vtkId = -1 | ) |
|
|
protected |
Give or create an entry for downward connectivity structure relative to a cell. If the entry already exists, just return its id, otherwise, create it. The internal storage memory is allocated if needed. The SMDS_UnstructuredGrid::_cellIdToDownId vector is completed for vtkUnstructuredGrid cells.
- Parameters
-
- Returns
- the rank in downward[vtkType] structure.
References allocate(), and initCell().
◆ addDownCell()
void SMDS_Downward::addDownCell |
( |
int |
cellId, |
|
|
int |
lowCellId, |
|
|
unsigned char |
aType |
|
) |
| |
|
protectedvirtual |
Id's are downward connectivity id's.
add a downward entity of dimension n-1 (cell or node) to a given cell. Actual implementation is done in derived methods.
- Parameters
-
cellId | index of the parent cell (dimension n) in the downward structure relative to a vtk cell type. |
lowCellId | index of the children cell to add (dimension n-1) |
aType | vtk cell type of the cell to add (needed to find the SMDS_Downward structure containing the cell to add). |
Reimplemented in SMDS_DownTriangle, SMDS_DownQuadTriangle, SMDS_DownQuadrangle, SMDS_DownQuadQuadrangle, SMDS_DownTetra, SMDS_DownQuadTetra, SMDS_DownPyramid, SMDS_DownQuadPyramid, SMDS_DownPenta, SMDS_DownQuadPenta, SMDS_DownHexa, and SMDS_DownQuadHexa.
◆ addUpCell()
void SMDS_Downward::addUpCell |
( |
int |
cellId, |
|
|
int |
upCellId, |
|
|
unsigned char |
aType |
|
) |
| |
|
protectedvirtual |
Id's are downward connectivity id's.
add a downward entity of dimension n+1 to a given cell. Actual implementation is done in derived methods.
- Parameters
-
cellId | index of the children cell (dimension n) in the downward structure relative to a vtk cell type. |
upCellId | index of the parent cell to add (dimension n+1) |
aType | vtk cell type of the cell to add (needed to find the SMDS_Downward structure containing the cell to add). |
Reimplemented in SMDS_Down1D, and SMDS_Down2D.
◆ allocate()
virtual void SMDS_Downward::allocate |
( |
int |
nbElems | ) |
|
|
protectedpure virtual |
◆ compactStorage()
virtual void SMDS_Downward::compactStorage |
( |
| ) |
|
|
protectedpure virtual |
◆ getCellDimension()
int SMDS_Downward::getCellDimension |
( |
unsigned char |
cellType | ) |
|
|
static |
get the dimension of a cell (1,2,3 for 1D, 2D 3D) given the vtk cell type
- Parameters
-
- See also
- vtkCellType.h
- Returns
- 1,2 or 3
Referenced by SMDS_UnstructuredGrid::BuildDownwardConnectivity(), SMDS_Down1D::computeFaces(), SMDS_Down2D::computeVolumeIdsFromNodesFace(), SMDS_Down1D::computeVtkCells(), SMESH_MeshEditor::CreateHoleSkin(), SMDS_UnstructuredGrid::GetNeighbors(), SMDS_UnstructuredGrid::getOrderedNodesOfFace(), SMDS_UnstructuredGrid::GetParentVolumes(), and SMDS_Downward().
◆ getDownCells()
const int * SMDS_Downward::getDownCells |
( |
int |
cellId | ) |
|
|
virtual |
◆ getDownTypes()
const unsigned char * SMDS_Downward::getDownTypes |
( |
int |
cellId | ) |
|
|
virtual |
get a list of vtk cell types associated to downward entities of a given cell, in the same order than the downward entities id's list (
- See also
- SMDS_Downward::getDownCells).
- Parameters
-
cellId | index of the cell in the downward structure relative to a vtk cell type. |
- Returns
- table of downward entities types.
Referenced by SMDS_Down1D::computeFaces().
◆ getMaxId()
int SMDS_Downward::getMaxId |
( |
| ) |
|
◆ getNodeIds()
virtual void SMDS_Downward::getNodeIds |
( |
int |
cellId, |
|
|
std::set< int > & |
nodeSet |
|
) |
| |
|
pure virtual |
◆ getNodes()
virtual int SMDS_Downward::getNodes |
( |
int |
cellId, |
|
|
int * |
nodevec |
|
) |
| |
|
virtual |
◆ getNodeSet()
int SMDS_Downward::getNodeSet |
( |
int |
cellId, |
|
|
int * |
nodeSet |
|
) |
| |
|
protectedvirtual |
◆ getNumberOfDownCells()
int SMDS_Downward::getNumberOfDownCells |
( |
int |
cellId | ) |
|
|
virtual |
Get the number of downward entities associated to a cell (always the same for a given vtk type of cell)
- Parameters
-
- Returns
Referenced by SMDS_Down1D::computeFaces().
◆ getNumberOfUpCells()
virtual int SMDS_Downward::getNumberOfUpCells |
( |
int |
cellId | ) |
|
|
pure virtual |
◆ getOrderedNodesOfFace()
virtual void SMDS_Downward::getOrderedNodesOfFace |
( |
int |
cellId, |
|
|
std::vector< vtkIdType > & |
orderedNodes |
|
) |
| |
|
virtual |
◆ getUpCells()
virtual const int * SMDS_Downward::getUpCells |
( |
int |
cellId | ) |
|
|
pure virtual |
◆ getUpTypes()
virtual const unsigned char * SMDS_Downward::getUpTypes |
( |
int |
cellId | ) |
|
|
pure virtual |
◆ getVtkCellId()
int SMDS_Downward::getVtkCellId |
( |
int |
cellId | ) |
|
◆ initCell()
void SMDS_Downward::initCell |
( |
int |
cellId | ) |
|
|
protectedvirtual |
generic method do nothing. see derived methods
- Parameters
-
Reimplemented in SMDS_Down1D.
Referenced by addCell().
◆ SMDS_Down2D
◆ SMDS_Down3D
◆ SMDS_UnstructuredGrid
The documentation for this class was generated from the following files:
- FreeCAD/src/3rdParty/salomesmesh/inc/SMDS_Downward.hxx
- FreeCAD/src/3rdParty/salomesmesh/src/SMDS/SMDS_Downward.cpp