The ReferencePixelInfo class defines the information about the reference pixel. More...


Public Member Functions | |
bool | areFacesCCWOrdered () const override |
bool | areVerticesCCWOrdered () const override |
double | evalArea (const std::array< double, 3 > *vertexCoords) const override |
std::array< double, 3 > | evalNormal (const std::array< double, 3 > *vertexCoords, const std::array< double, 3 > &point={{0.5, 0.5, 0.5}}) const override |
double | evalSize (const std::array< double, 3 > *vertexCoords) const override |
int | getCCWOrderedFace (int n) const override |
int | getCCWOrderedVertex (int n) const override |
![]() | |
double | evalFaceLength (int face, const std::array< double, 3 > *vertexCoords) const |
double | evalPerimeter (const std::array< double, 3 > *vertexCoords) const |
double | evalPointDistance (const std::array< double, 3 > &point, const std::array< double, 3 > *vertexCoords) const override |
void | evalPointProjection (const std::array< double, 3 > &point, const std::array< double, 3 > *vertexCoords, std::array< double, 3 > *projection, double *distance) const override |
Static Public Attributes | |
static BITPIT_PUBLIC_API const ReferencePixelInfo | info |
![]() | |
static BITPIT_PUBLIC_API const int | MAX_ELEM_EDGES = 12 |
static BITPIT_PUBLIC_API const int | MAX_ELEM_FACES = 6 |
static BITPIT_PUBLIC_API const int | MAX_ELEM_VERTICES = 8 |
Protected Member Functions | |
ReferencePixelInfo () | |
ReferencePixelInfo (ReferencePixelInfo const &)=delete | |
ReferencePixelInfo & | operator= (ReferencePixelInfo const &)=delete |
![]() | |
Reference2DElementInfo (ElementType type, int nVertices) | |
void | getCCWVertexCoords (const std::array< double, 3 > *vertexCoords, const std::array< double, 3 > **ccwVertexCoords, std::array< double, 3 > *ccwVertexCoordsStorage) const |
![]() | |
ReferenceElementInfo (int _dimension, ElementType _type, int _nVertices, int _nFaces, int _nEdges) | |
ReferenceElementInfo (ReferenceElementInfo const &)=delete | |
void | initializeFaceEdges (const std::vector< const ReferenceElementInfo * > &facesInfo, const std::vector< const ReferenceElementInfo * > &edgesInfo) |
ReferenceElementInfo & | operator= (ReferenceElementInfo const &)=delete |
Friends | |
class | ReferenceElementInfo |
class | ReferenceVoxelInfo |
Additional Inherited Members | |
![]() | |
static BITPIT_PUBLIC_API const ReferenceElementInfo & | getInfo (ElementType type) |
static bool | hasInfo (ElementType type) |
![]() | |
int | dimension |
std::array< std::array< int, MAX_ELEM_VERTICES >, MAX_ELEM_EDGES > | edgeConnectStorage |
std::array< ElementType, MAX_ELEM_EDGES > | edgeTypeStorage |
std::array< std::array< int, MAX_ELEM_VERTICES >, MAX_ELEM_FACES > | faceConnectStorage |
std::array< std::array< int, MAX_ELEM_FACES >, MAX_ELEM_FACES > | faceEdgeStorage |
std::array< ElementType, MAX_ELEM_FACES > | faceTypeStorage |
int | nEdges |
int | nFaces |
int | nVertices |
ElementType | type |
Detailed Description
The ReferencePixelInfo class defines the information about the reference pixel.
Definition at line 242 of file element_reference.hpp.
Constructor & Destructor Documentation
◆ ReferencePixelInfo()
|
protected |
Default constructor
Definition at line 1402 of file element_reference.cpp.
Member Function Documentation
◆ areFacesCCWOrdered()
|
overridevirtual |
Check if the faces are ordered counter-clockwise.
- Returns
- Return true if the faces are ordered counter-clockwise, false otherwise.
Reimplemented from bitpit::Reference2DElementInfo.
Definition at line 1536 of file element_reference.cpp.
◆ areVerticesCCWOrdered()
|
overridevirtual |
Check if the vertices are ordered counter-clockwise.
- Returns
- Return true if the vertices are ordered counter-clockwise, false otherwise.
Reimplemented from bitpit::Reference2DElementInfo.
Definition at line 1510 of file element_reference.cpp.
◆ evalArea()
|
overridevirtual |
Evaluates the area of an element with the specified vertex coordinates.
- Parameters
-
vertexCoords are the coordinate of the vertices
- Returns
- The area of the element.
Implements bitpit::Reference2DElementInfo.
Definition at line 1471 of file element_reference.cpp.
◆ evalNormal()
|
overridevirtual |
Evaluates the normal of an element with the specified vertex coordinates.
- Parameters
-
vertexCoords are the coordinate of the vertices point are the element reference coordinates of the point where the normal should be evaluated
- Returns
- The normal of the element.
Implements bitpit::Reference2DElementInfo.
Definition at line 1490 of file element_reference.cpp.
◆ evalSize()
|
overridevirtual |
Evaluates the characteristics size of an element with the specified vertex coordinates.
The characteristics size of the pixel is evaluated as the length of the shortest side.
- Parameters
-
vertexCoords are the coordinate of the vertices
- Returns
- The length of the line.
Reimplemented from bitpit::Reference2DElementInfo.
Definition at line 1451 of file element_reference.cpp.
◆ getCCWOrderedFace()
|
overridevirtual |
Get the index of the face occupying the n-th position in the counter-clockwise ordered list of faces.
- Parameters
-
[in] n is the requested position
- Returns
- The local index of the face occupying the n-th position in the counter-clockwise ordered list of faces.
Reimplemented from bitpit::Reference2DElementInfo.
Definition at line 1549 of file element_reference.cpp.
◆ getCCWOrderedVertex()
|
overridevirtual |
Get the index of the vertex occupying the n-th position in the counter-clockwise ordered list of vertices.
- Parameters
-
n is the requested position
- Returns
- The index of the vertex occupying the n-th position in the counter-clockwise ordered list of vertices.
Reimplemented from bitpit::Reference2DElementInfo.
Definition at line 1523 of file element_reference.cpp.
Friends And Related Symbol Documentation
◆ ReferenceElementInfo
|
friend |
Definition at line 244 of file element_reference.hpp.
◆ ReferenceVoxelInfo
|
friend |
Definition at line 245 of file element_reference.hpp.
Member Data Documentation
◆ info
|
static |
Definition at line 260 of file element_reference.hpp.
The documentation for this class was generated from the following files:
- src/patchkernel/element_reference.hpp
- src/patchkernel/element_reference.cpp
