#include <SMDS_Downward.hxx>
|
virtual void | getOrderedNodesOfFace (int cellId, std::vector< vtkIdType > &orderedNodes) |
|
virtual int | getNumberOfUpCells (int cellId) |
|
virtual const int * | getUpCells (int cellId) |
|
virtual const unsigned char * | getUpTypes (int cellId) |
|
virtual void | getNodeIds (int cellId, std::set< int > &nodeSet) |
|
virtual int | getNumberOfDownCells (int cellId) |
| Get the number of downward entities associated to a cell (always the same for a given vtk type of cell) More...
|
|
virtual const int * | getDownCells (int cellId) |
| get a pointer on the downward entities id's associated to a cell. More...
|
|
virtual const unsigned char * | getDownTypes (int cellId) |
| 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 ( More...
|
|
virtual int | getNodes (int, int *) |
|
int | getVtkCellId (int cellId) |
|
int | getMaxId () |
|
|
static int | getCellDimension (unsigned char cellType) |
| get the dimension of a cell (1,2,3 for 1D, 2D 3D) given the vtk cell type More...
|
|
|
| SMDS_DownPyramid (SMDS_UnstructuredGrid *grid) |
|
| ~SMDS_DownPyramid () |
|
virtual void | addDownCell (int cellId, int lowCellId, unsigned char aType) |
| Id's are downward connectivity id's. More...
|
|
virtual void | computeFacesWithNodes (int cellId, ListElemByNodesType &facesWithNodes) |
| Create a list of faces described by a vtk Type and an ordered set of Node Id's The pyramid is defined by the five points (0-4) where (0,1,2,3) is the base of the pyramid which, using the right hand rule, forms a quadrilateral whose normal points in the direction of the pyramid apex at vertex #4. More...
|
|
virtual void | allocate (int nbElems) |
|
virtual void | compactStorage () |
|
int | FindFaceByNodes (int cellId, ElemByNodesType &faceByNodes) |
|
int | addCell (int vtkId=-1) |
| Give or create an entry for downward connectivity structure relative to a cell. More...
|
|
virtual void | initCell (int cellId) |
| generic method do nothing. More...
|
|
virtual void | addUpCell (int cellId, int upCellId, unsigned char aType) |
| Id's are downward connectivity id's. More...
|
|
virtual int | getNodeSet (int cellId, int *nodeSet) |
|
◆ SMDS_DownPyramid()
◆ ~SMDS_DownPyramid()
SMDS_DownPyramid::~SMDS_DownPyramid |
( |
| ) |
|
|
protected |
◆ addCell()
int SMDS_Downward::addCell |
( |
int |
vtkId = -1 | ) |
|
|
protectedinherited |
◆ addDownCell()
void SMDS_DownPyramid::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 from SMDS_Downward.
References SMDS_Downward::_cellIds, and SMDS_Downward::_nbDownCells.
◆ addUpCell()
void SMDS_Downward::addUpCell |
( |
int |
cellId, |
|
|
int |
upCellId, |
|
|
unsigned char |
aType |
|
) |
| |
|
protectedvirtualinherited |
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()
void SMDS_Down3D::allocate |
( |
int |
nbElems | ) |
|
|
protectedvirtualinherited |
◆ compactStorage()
void SMDS_Down3D::compactStorage |
( |
| ) |
|
|
protectedvirtualinherited |
◆ computeFacesWithNodes()
void SMDS_DownPyramid::computeFacesWithNodes |
( |
int |
cellId, |
|
|
ListElemByNodesType & |
facesWithNodes |
|
) |
| |
|
protectedvirtual |
Create a list of faces described by a vtk Type and an ordered set of Node Id's The pyramid is defined by the five points (0-4) where (0,1,2,3) is the base of the pyramid which, using the right hand rule, forms a quadrilateral whose normal points in the direction of the pyramid apex at vertex #4.
- See also
- vtkPyramid.h in Filtering.
- Parameters
-
Implements SMDS_Down3D.
References SMDS_Downward::_grid, ListElemByNodesType::elems, ListElemByNodesType::nbElems, ElemByNodesType::nbNodes, ElemByNodesType::nodeIds, and ElemByNodesType::vtkType.
◆ FindFaceByNodes()
int SMDS_Down3D::FindFaceByNodes |
( |
int |
cellId, |
|
|
ElemByNodesType & |
faceByNodes |
|
) |
| |
|
protectedinherited |
◆ getCellDimension()
int SMDS_Downward::getCellDimension |
( |
unsigned char |
cellType | ) |
|
|
staticinherited |
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
References VTK_MAXTYPE.
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::SMDS_Downward().
◆ getDownCells()
const int * SMDS_Downward::getDownCells |
( |
int |
cellId | ) |
|
|
virtualinherited |
◆ getDownTypes()
const unsigned char * SMDS_Downward::getDownTypes |
( |
int |
cellId | ) |
|
|
virtualinherited |
◆ getMaxId()
int SMDS_Downward::getMaxId |
( |
| ) |
|
|
inherited |
◆ getNodeIds()
void SMDS_Down3D::getNodeIds |
( |
int |
cellId, |
|
|
std::set< int > & |
nodeSet |
|
) |
| |
|
virtualinherited |
◆ getNodes()
virtual int SMDS_Downward::getNodes |
( |
int |
, |
|
|
int * |
|
|
) |
| |
|
virtualinherited |
◆ getNodeSet()
int SMDS_Downward::getNodeSet |
( |
int |
cellId, |
|
|
int * |
nodeSet |
|
) |
| |
|
protectedvirtualinherited |
◆ getNumberOfDownCells()
int SMDS_Downward::getNumberOfDownCells |
( |
int |
cellId | ) |
|
|
virtualinherited |
◆ getNumberOfUpCells()
int SMDS_Down3D::getNumberOfUpCells |
( |
int |
cellId | ) |
|
|
virtualinherited |
◆ getOrderedNodesOfFace()
void SMDS_DownPyramid::getOrderedNodesOfFace |
( |
int |
cellId, |
|
|
std::vector< vtkIdType > & |
orderedNodes |
|
) |
| |
|
virtual |
◆ getUpCells()
const int * SMDS_Down3D::getUpCells |
( |
int |
cellId | ) |
|
|
virtualinherited |
◆ getUpTypes()
const unsigned char * SMDS_Down3D::getUpTypes |
( |
int |
cellId | ) |
|
|
virtualinherited |
◆ getVtkCellId()
int SMDS_Downward::getVtkCellId |
( |
int |
cellId | ) |
|
|
inherited |
◆ initCell()
void SMDS_Downward::initCell |
( |
int |
cellId | ) |
|
|
protectedvirtualinherited |
◆ SMDS_UnstructuredGrid
◆ _cellDimension
vector< int > SMDS_Downward::_cellDimension |
|
staticprotectedinherited |
◆ _cellIds
std::vector<int> SMDS_Downward::_cellIds |
|
protectedinherited |
growing size: all the down cell id's, size = _maxId * _nbDownCells
Referenced by SMDS_DownTriangle::addDownCell(), SMDS_DownQuadTriangle::addDownCell(), SMDS_DownQuadrangle::addDownCell(), SMDS_DownQuadQuadrangle::addDownCell(), SMDS_DownTetra::addDownCell(), SMDS_DownQuadTetra::addDownCell(), addDownCell(), SMDS_DownQuadPyramid::addDownCell(), SMDS_DownPenta::addDownCell(), SMDS_DownQuadPenta::addDownCell(), SMDS_DownHexa::addDownCell(), SMDS_DownQuadHexa::addDownCell(), SMDS_Down1D::allocate(), SMDS_Down2D::allocate(), SMDS_Down3D::allocate(), SMDS_Down1D::compactStorage(), SMDS_Down2D::compactStorage(), SMDS_Down1D::computeFaces(), SMDS_Down1D::computeVtkCells(), SMDS_Down2D::FindEdgeByNodes(), SMDS_Down3D::FindFaceByNodes(), SMDS_Downward::getDownCells(), SMDS_Down1D::getNodeIds(), SMDS_Down2D::getNodeIds(), SMDS_Down1D::getNodeSet(), SMDS_Down1D::setNodes(), and SMDS_Downward::SMDS_Downward().
◆ _cellTypes
std::vector<unsigned char> SMDS_Downward::_cellTypes |
|
protectedinherited |
fixed size: the same vector for all cells of a derived class
Referenced by SMDS_Down2D::FindEdgeByNodes(), SMDS_Down3D::FindFaceByNodes(), SMDS_Downward::getDownTypes(), SMDS_Down2D::getNodeIds(), SMDS_DownEdge::SMDS_DownEdge(), SMDS_DownHexa::SMDS_DownHexa(), SMDS_DownPenta::SMDS_DownPenta(), SMDS_DownPyramid(), SMDS_DownQuadEdge::SMDS_DownQuadEdge(), SMDS_DownQuadHexa::SMDS_DownQuadHexa(), SMDS_DownQuadPenta::SMDS_DownQuadPenta(), SMDS_DownQuadPyramid::SMDS_DownQuadPyramid(), SMDS_DownQuadQuadrangle::SMDS_DownQuadQuadrangle(), SMDS_DownQuadrangle::SMDS_DownQuadrangle(), SMDS_DownQuadTetra::SMDS_DownQuadTetra(), SMDS_DownQuadTriangle::SMDS_DownQuadTriangle(), SMDS_DownTetra::SMDS_DownTetra(), SMDS_DownTriangle::SMDS_DownTriangle(), and SMDS_Downward::SMDS_Downward().
◆ _grid
Referenced by SMDS_Downward::addCell(), SMDS_Down1D::computeFaces(), SMDS_DownTetra::computeFacesWithNodes(), SMDS_DownQuadTetra::computeFacesWithNodes(), computeFacesWithNodes(), SMDS_DownQuadPyramid::computeFacesWithNodes(), SMDS_DownPenta::computeFacesWithNodes(), SMDS_DownQuadPenta::computeFacesWithNodes(), SMDS_DownHexa::computeFacesWithNodes(), SMDS_DownQuadHexa::computeFacesWithNodes(), SMDS_Down2D::computeVolumeIds(), SMDS_Down2D::computeVolumeIdsFromNodesFace(), SMDS_Down1D::computeVtkCells(), SMDS_Down2D::FindEdgeByNodes(), SMDS_Down3D::FindFaceByNodes(), SMDS_Down2D::getNodeIds(), SMDS_Down3D::getNodeIds(), SMDS_DownTetra::getOrderedNodesOfFace(), SMDS_DownQuadTetra::getOrderedNodesOfFace(), getOrderedNodesOfFace(), SMDS_DownQuadPyramid::getOrderedNodesOfFace(), SMDS_DownPenta::getOrderedNodesOfFace(), SMDS_DownQuadPenta::getOrderedNodesOfFace(), SMDS_DownHexa::getOrderedNodesOfFace(), SMDS_DownQuadHexa::getOrderedNodesOfFace(), SMDS_Down1D::setNodes(), and SMDS_Down2D::setTempNodes().
◆ _maxId
int SMDS_Downward::_maxId |
|
protectedinherited |
◆ _nbDownCells
int SMDS_Downward::_nbDownCells |
|
protectedinherited |
the same number for all cells of a derived class
Referenced by SMDS_DownTriangle::addDownCell(), SMDS_DownQuadTriangle::addDownCell(), SMDS_DownQuadrangle::addDownCell(), SMDS_DownQuadQuadrangle::addDownCell(), SMDS_DownTetra::addDownCell(), SMDS_DownQuadTetra::addDownCell(), addDownCell(), SMDS_DownQuadPyramid::addDownCell(), SMDS_DownPenta::addDownCell(), SMDS_DownQuadPenta::addDownCell(), SMDS_DownHexa::addDownCell(), SMDS_DownQuadHexa::addDownCell(), SMDS_Down1D::allocate(), SMDS_Down2D::allocate(), SMDS_Down3D::allocate(), SMDS_Down1D::compactStorage(), SMDS_Down2D::compactStorage(), SMDS_Down1D::computeFaces(), SMDS_Down1D::computeVtkCells(), SMDS_Down2D::FindEdgeByNodes(), SMDS_Down3D::FindFaceByNodes(), SMDS_Downward::getDownCells(), SMDS_Down1D::getNodeIds(), SMDS_Down2D::getNodeIds(), SMDS_Down1D::getNodeSet(), SMDS_Downward::getNumberOfDownCells(), and SMDS_Down1D::setNodes().
◆ _vtkCellIds
std::vector<int> SMDS_Downward::_vtkCellIds |
|
protectedinherited |
growing size: size = _maxId, either vtkId or -1
Referenced by SMDS_Downward::addCell(), SMDS_Down1D::allocate(), SMDS_Down2D::allocate(), SMDS_Down3D::allocate(), SMDS_Down1D::compactStorage(), SMDS_Down2D::compactStorage(), SMDS_Down3D::getNodeIds(), SMDS_DownTetra::getOrderedNodesOfFace(), SMDS_DownQuadTetra::getOrderedNodesOfFace(), getOrderedNodesOfFace(), SMDS_DownQuadPyramid::getOrderedNodesOfFace(), SMDS_DownPenta::getOrderedNodesOfFace(), SMDS_DownQuadPenta::getOrderedNodesOfFace(), SMDS_DownHexa::getOrderedNodesOfFace(), SMDS_DownQuadHexa::getOrderedNodesOfFace(), and SMDS_Downward::getVtkCellId().