SMDS_DownQuadPyramid Class Reference

#include <SMDS_Downward.hxx>

Public Member Functions

virtual void getOrderedNodesOfFace (int cellId, std::vector< vtkIdType > &orderedNodes)
 
- Public Member Functions inherited from SMDS_Down3D
virtual void getNodeIds (int cellId, std::set< int > &nodeSet)
 
virtual int getNumberOfUpCells (int cellId)
 
virtual const intgetUpCells (int cellId)
 
virtual const unsigned char * getUpTypes (int cellId)
 
- Public Member Functions inherited from SMDS_Downward
virtual const intgetDownCells (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 intgetUpCells (int cellId)=0
 
virtual const unsigned char * getUpTypes (int cellId)=0
 
int getVtkCellId (int cellId)
 

Protected Member Functions

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)
 
 SMDS_DownQuadPyramid (SMDS_UnstructuredGrid *grid)
 
 ~SMDS_DownQuadPyramid ()
 
- Protected Member Functions inherited from SMDS_Down3D
virtual void allocate (int nbElems)
 
virtual void compactStorage ()
 
virtual void computeFacesWithNodes (int cellId, ListElemByNodesType &facesWithNodes)=0
 
int FindFaceByNodes (int cellId, ElemByNodesType &faceByNodes)
 
 SMDS_Down3D (SMDS_UnstructuredGrid *grid, int nbDownCells)
 
 ~SMDS_Down3D ()
 
- Protected Member Functions inherited from SMDS_Downward
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_UnstructuredGrid
 

Additional Inherited Members

- Static Public Member Functions inherited from SMDS_Downward
static int getCellDimension (unsigned char cellType)
 

Constructor & Destructor Documentation

◆ SMDS_DownQuadPyramid()

SMDS_DownQuadPyramid::SMDS_DownQuadPyramid ( SMDS_UnstructuredGrid grid)
protected

◆ ~SMDS_DownQuadPyramid()

SMDS_DownQuadPyramid::~SMDS_DownQuadPyramid ( )
protected

Member Function Documentation

◆ addDownCell()

void SMDS_DownQuadPyramid::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
cellIdindex of the parent cell (dimension n) in the downward structure relative to a vtk cell type.
lowCellIdindex of the children cell to add (dimension n-1)
aTypevtk cell type of the cell to add (needed to find the SMDS_Downward structure containing the cell to add).

Reimplemented from SMDS_Downward.

◆ computeFacesWithNodes()

void SMDS_DownQuadPyramid::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 ordering of the thirteen points defining the quadratic pyramid cell is point id's (0-4,5-12) where point id's 0-4 are the five corner vertices of the pyramid; followed by eight mid-edge nodes (5-12). Note that these mid-edge nodes lie on the edges defined by 5(0,1), 6(1,2), 7(2,3), 8(3,0), 9(0,4), 10(1,4), 11(2,4), 12(3,4).

See also
vtkQuadraticPyramid.h in Filtering.
Parameters
cellIdvolumeId in vtkUnstructuredGrid
facesWithNodesvector of face descriptors to be filled

Implements SMDS_Down3D.

References ListElemByNodesType::elems, ListElemByNodesType::nbElems, ElemByNodesType::nbNodes, ElemByNodesType::nodeIds, and ElemByNodesType::vtkType.

◆ getOrderedNodesOfFace()

void SMDS_DownQuadPyramid::getOrderedNodesOfFace ( int  cellId,
std::vector< vtkIdType > &  orderedNodes 
)
virtual

Reimplemented from SMDS_Downward.

Friends And Related Function Documentation

◆ SMDS_UnstructuredGrid


The documentation for this class was generated from the following files: