#include <SMDS_Downward.hxx>
Public Member Functions | |
virtual const int * getDownCells (int cellId) | |
virtual const unsigned char * getDownTypes (int cellId) | |
int getMaxId () | |
virtual void getNodeIds (int cellId, std::set< int > &nodeSet)=0 | |
virtual int getNodes (int cellId, int *nodevec) | |
virtual int getNumberOfDownCells (int cellId) | |
virtual int getNumberOfUpCells (int cellId)=0 | |
virtual void getOrderedNodesOfFace (int cellId, std::vector< vtkIdType > &orderedNodes) | |
virtual const int * getUpCells (int cellId)=0 | |
virtual const unsigned char * getUpTypes (int cellId)=0 | |
int getVtkCellId (int cellId) | |
Static Public Member Functions | |
static int getCellDimension (unsigned char cellType) | |
Protected Member Functions | |
int addCell (int vtkId=-1) | |
virtual void addDownCell (int cellId, int lowCellId, unsigned char aType) | |
Id's are downward connectivity id's. More... | |
virtual void addUpCell (int cellId, int upCellId, unsigned char aType) | |
Id's are downward connectivity id's. More... | |
virtual void allocate (int nbElems)=0 | |
virtual void compactStorage ()=0 | |
virtual int getNodeSet (int cellId, int *nodeSet) | |
virtual void initCell (int cellId) | |
SMDS_Downward (SMDS_UnstructuredGrid *grid, int nbDownCells) | |
virtual ~SMDS_Downward () | |
Friends | |
class SMDS_Down2D | |
class SMDS_Down3D | |
class SMDS_UnstructuredGrid | |
Constructor & Destructor Documentation
◆ SMDS_Downward()
|
protected |
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()
|
protectedvirtual |
Member Function Documentation
◆ addCell()
|
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
-
vtkId for a vtkUnstructuredGrid cell or -1 (default) for a created downward cell.
- Returns
- the rank in downward[vtkType] structure.
References allocate(), and initCell().
◆ addDownCell()
|
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_DownQuadHexa, SMDS_DownHexa, SMDS_DownQuadPenta, SMDS_DownPenta, SMDS_DownQuadPyramid, SMDS_DownPyramid, SMDS_DownQuadTetra, SMDS_DownTetra, SMDS_DownQuadQuadrangle, SMDS_DownQuadrangle, SMDS_DownQuadTriangle, and SMDS_DownTriangle.
◆ addUpCell()
|
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_Down2D, and SMDS_Down1D.
◆ allocate()
|
protectedpure virtual |
Implemented in SMDS_Down3D, SMDS_Down2D, and SMDS_Down1D.
Referenced by addCell().
◆ compactStorage()
|
protectedpure virtual |
Implemented in SMDS_Down3D, SMDS_Down2D, and SMDS_Down1D.
◆ getCellDimension()
|
static |
get the dimension of a cell (1,2,3 for 1D, 2D 3D) given the vtk cell type
- Parameters
-
cellType vtk cell type
- 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()
|
virtual |
get a pointer on the downward entities id's associated to a cell.
- See also
- SMDS_Downward::getNumberOfDownCells for the number of downward entities.
- SMDS_Downward::getDownTypes for the vtk cell types associated to the downward entities.
- Parameters
-
cellId index of the cell in the downward structure relative to a given vtk cell type.
- Returns
- table of downward entities id's.
Referenced by SMDS_Down1D::computeFaces().
◆ getDownTypes()
|
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 | ( | ) |
Referenced by SMDS_UnstructuredGrid::BuildDownwardConnectivity().
◆ getNodeIds()
|
pure virtual |
Implemented in SMDS_Down3D, SMDS_Down2D, and SMDS_Down1D.
◆ getNodes()
|
virtual |
Reimplemented in SMDS_Down1D.
◆ getNodeSet()
|
protectedvirtual |
Reimplemented in SMDS_Down2D, and SMDS_Down1D.
Referenced by SMDS_Down1D::getNodes().
◆ getNumberOfDownCells()
|
virtual |
Get the number of downward entities associated to a cell (always the same for a given vtk type of cell)
- Parameters
-
cellId not used here.
- Returns
Referenced by SMDS_Down1D::computeFaces().
◆ getNumberOfUpCells()
|
pure virtual |
Implemented in SMDS_Down3D, SMDS_Down2D, and SMDS_Down1D.
◆ getOrderedNodesOfFace()
|
virtual |
Reimplemented in SMDS_DownQuadHexa, SMDS_DownHexa, SMDS_DownQuadPenta, SMDS_DownPenta, SMDS_DownQuadPyramid, SMDS_DownPyramid, SMDS_DownQuadTetra, and SMDS_DownTetra.
Referenced by SMDS_UnstructuredGrid::getOrderedNodesOfFace().
◆ getUpCells()
|
pure virtual |
Implemented in SMDS_Down3D, SMDS_Down2D, and SMDS_Down1D.
◆ getUpTypes()
|
pure virtual |
Implemented in SMDS_Down3D, SMDS_Down2D, and SMDS_Down1D.
◆ getVtkCellId()
int SMDS_Downward::getVtkCellId | ( | int | cellId | ) |
◆ initCell()
|
protectedvirtual |
generic method do nothing. see derived methods
- Parameters
-
cellId
Reimplemented in SMDS_Down1D.
Referenced by addCell().
Friends And Related Function Documentation
◆ SMDS_Down2D
|
friend |
◆ SMDS_Down3D
|
friend |
◆ SMDS_UnstructuredGrid
|
friend |
The documentation for this class was generated from the following files:
- src/3rdParty/salomesmesh/inc/SMDS_Downward.hxx
- src/3rdParty/salomesmesh/src/SMDS/SMDS_Downward.cpp