#include <SMDS_Downward.hxx>
Public Member Functions | |
virtual void getNodeIds (int cellId, std::set< int > &nodeSet) | |
virtual int getNumberOfUpCells (int cellId) | |
virtual const int * getUpCells (int cellId) | |
virtual const unsigned char * getUpTypes (int cellId) | |
![]() | |
virtual const int * getDownCells (int cellId) | |
virtual const unsigned char * getDownTypes (int cellId) | |
int getMaxId () | |
virtual int getNodes (int cellId, int *nodevec) | |
virtual int getNumberOfDownCells (int cellId) | |
virtual void getOrderedNodesOfFace (int cellId, std::vector< vtkIdType > &orderedNodes) | |
int getVtkCellId (int cellId) | |
Protected Member Functions | |
virtual void addUpCell (int cellId, int upCellId, unsigned char aType) | |
Id's are downward connectivity id's. More... | |
virtual void allocate (int nbElems) | |
virtual void compactStorage () | |
virtual void computeEdgesWithNodes (int cellId, ListElemByNodesType &facesWithNodes)=0 | |
int computeVolumeIds (ElemByNodesType &faceByNodes, int *ids) | |
int computeVolumeIds (int cellId, int *ids) | |
int computeVolumeIdsFromNodesFace (int *nodes, int nbNodes, int *ids) | |
int FindEdgeByNodes (int cellId, ElemByNodesType &edgeByNodes) | |
virtual int getNodeSet (int cellId, int *nodeSet) | |
bool isInFace (int cellId, int *pts, int npts) | |
void setTempNodes (int cellId, ElemByNodesType &faceByNodes) | |
void setTempNodes (int cellId, int vtkId) | |
SMDS_Down2D (SMDS_UnstructuredGrid *grid, int nbDownCells) | |
~SMDS_Down2D () | |
![]() | |
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 initCell (int cellId) | |
SMDS_Downward (SMDS_UnstructuredGrid *grid, int nbDownCells) | |
virtual ~SMDS_Downward () | |
Friends | |
class SMDS_Down1D | |
class SMDS_UnstructuredGrid | |
Additional Inherited Members | |
![]() | |
static int getCellDimension (unsigned char cellType) | |
Constructor & Destructor Documentation
◆ SMDS_Down2D()
|
protected |
◆ ~SMDS_Down2D()
|
protected |
Member Function Documentation
◆ 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 from SMDS_Downward.
◆ allocate()
|
protectedvirtual |
Resize the downward connectivity storage vector if needed.
- Parameters
-
nbElems total number of elements of the same type required
Implements SMDS_Downward.
References SMDS_Mesh::chunkSize.
◆ compactStorage()
|
protectedvirtual |
Implements SMDS_Downward.
◆ computeEdgesWithNodes()
|
protectedpure virtual |
Implemented in SMDS_DownQuadQuadrangle, SMDS_DownQuadrangle, SMDS_DownQuadTriangle, and SMDS_DownTriangle.
Referenced by SMDS_UnstructuredGrid::BuildDownwardConnectivity().
◆ computeVolumeIds() [1/2]
|
protected |
Find in vtkUnstructuredGrid the volumes containing a face described by it's nodes Search the volumes containing a face, to store the info in SMDS_Down2D for later uses with SMDS_Down2D::getUpCells and SMDS_Down2D::getUpTypes. A face belongs to 0, 1 or 2 volumes, identified by their id in vtkUnstructuredGrid.
- Parameters
-
faceByNodes ids a couple of vtkId, initialized at -1 (no parent volume)
- Returns
- number of volumes (0, 1 or 2)
References computeVolumeIdsFromNodesFace(), ElemByNodesType::nbNodes, and ElemByNodesType::nodeIds.
◆ computeVolumeIds() [2/2]
|
protected |
Find in vtkUnstructuredGrid the volumes containing a face already stored in vtkUnstructuredGrid. Search the volumes containing a face, to store the info in SMDS_Down2D for later uses with SMDS_Down2D::getUpCells and SMDS_Down2D::getUpTypes. A face belongs to 0, 1 or 2 volumes, identified by their id in vtkUnstructuredGrid.
- Parameters
-
cellId the face cell id in vkUnstructuredGrid ids a couple of vtkId, initialized at -1 (no parent volume)
- Returns
- number of volumes (0, 1 or 2)
References computeVolumeIdsFromNodesFace().
Referenced by SMDS_UnstructuredGrid::BuildDownwardConnectivity().
◆ computeVolumeIdsFromNodesFace()
|
protected |
Find in vtkUnstructuredGrid the volumes containing a face described by it's nodes Search the volumes containing a face, to store the info in SMDS_Down2D for later uses with SMDS_Down2D::getUpCells and SMDS_Down2D::getUpTypes. A face belongs to 0, 1 or 2 volumes, identified by their id in vtkUnstructuredGrid.
- Parameters
-
pts array of vtk node id's npts number of nodes ids
- Returns
- number of volumes (0, 1 or 2)
References SMDS_Downward::getCellDimension().
Referenced by SMDS_UnstructuredGrid::BuildDownwardConnectivity(), and computeVolumeIds().
◆ FindEdgeByNodes()
|
protected |
References ElemByNodesType::nodeIds, and ElemByNodesType::vtkType.
Referenced by SMDS_UnstructuredGrid::BuildDownwardConnectivity().
◆ getNodeIds()
|
virtual |
Implements SMDS_Downward.
◆ getNodeSet()
|
protectedvirtual |
Reimplemented from SMDS_Downward.
◆ getNumberOfUpCells()
|
virtual |
Implements SMDS_Downward.
◆ getUpCells()
|
virtual |
Implements SMDS_Downward.
◆ getUpTypes()
|
virtual |
Implements SMDS_Downward.
◆ isInFace()
|
protected |
Find if all the nodes belongs to the face.
- Parameters
-
cellId the face cell Id nodeSet set of node id's to be found in the face list of nodes
- Returns
Referenced by SMDS_Down1D::computeFaces().
◆ setTempNodes() [1/2]
|
protected |
References ElemByNodesType::nbNodes, and ElemByNodesType::nodeIds.
◆ setTempNodes() [2/2]
|
protected |
Referenced by SMDS_UnstructuredGrid::BuildDownwardConnectivity().
Friends And Related Function Documentation
◆ SMDS_Down1D
|
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