}
else if (*this == ReferenceCells::Pyramid)
{
- if (face == 0) // Quad
+ if (face == 0) // The quadrilateral face
{
return GeometryInfo<3>::standard_to_real_face_vertex(
vertex,
Utilities::get_bit(face_orientation, 2),
Utilities::get_bit(face_orientation, 1));
}
- else // Tri
+ else // One of the triangular faces
{
static const unsigned int table[6][3] = {
{0, 2, 1}, {0, 1, 2}, {2, 1, 0}, {1, 2, 0}, {1, 0, 2}, {2, 0, 1}};
}
else if (*this == ReferenceCells::Wedge)
{
- if (face > 1) // QUAD
+ if (face > 1) // One of the quadrilateral faces
{
return GeometryInfo<3>::standard_to_real_face_vertex(
vertex,
Utilities::get_bit(face_orientation, 2),
Utilities::get_bit(face_orientation, 1));
}
- else // TRI
+ else // One of the triangular faces
{
static const unsigned int table[6][3] = {
{0, 2, 1}, {0, 1, 2}, {2, 1, 0}, {1, 2, 0}, {1, 0, 2}, {2, 0, 1}};
}
else if (*this == ReferenceCells::Pyramid)
{
- if (face == 0) // QUAD
+ if (face == 0) // The quadrilateral face
{
return GeometryInfo<3>::standard_to_real_face_line(
line,
Utilities::get_bit(face_orientation, 2),
Utilities::get_bit(face_orientation, 1));
}
- else // TRI
+ else // One of the triangular faces
{
static const unsigned int table[6][3] = {
{2, 1, 0}, {0, 1, 2}, {1, 0, 2}, {1, 2, 0}, {0, 2, 1}, {2, 0, 1}};
}
else if (*this == ReferenceCells::Wedge)
{
- if (face > 1) // QUAD
+ if (face > 1) // One of the quadrilateral faces
{
return GeometryInfo<3>::standard_to_real_face_line(
line,
Utilities::get_bit(face_orientation, 2),
Utilities::get_bit(face_orientation, 1));
}
- else // TRI
+ else // One of the triangular faces
{
static const unsigned int table[6][3] = {
{2, 1, 0}, {0, 1, 2}, {1, 0, 2}, {1, 2, 0}, {0, 2, 1}, {2, 0, 1}};
const unsigned int face,
const unsigned char face_orientation) const override
{
- if (face == 0) // QUAD
+ if (face == 0) // The quadrilateral face
{
return GeometryInfo<3>::standard_to_real_face_line(
line,
Utilities::get_bit(face_orientation, 2),
Utilities::get_bit(face_orientation, 1));
}
- else // TRI
+ else // One of the triangular faces
{
static const std::array<std::array<unsigned int, 3>, 6> table = {
{{{2, 1, 0}},
const unsigned int face,
const unsigned char face_orientation) const override
{
- if (face == 0) // Quad
+ if (face == 0) // The one quadrilateral face
{
return GeometryInfo<3>::standard_to_real_face_vertex(
vertex,
Utilities::get_bit(face_orientation, 2),
Utilities::get_bit(face_orientation, 1));
}
- else // Tri
+ else // One of the triangular faces
{
static const std::array<std::array<unsigned int, 3>, 6> table = {
{{{0, 2, 1}},
const unsigned int face,
const unsigned char face_orientation) const override
{
- if (face > 1) // QUAD
+ if (face > 1) // One of the quadrilateral faces
{
return GeometryInfo<3>::standard_to_real_face_line(
line,
Utilities::get_bit(face_orientation, 2),
Utilities::get_bit(face_orientation, 1));
}
- else // TRI
+ else // One of the triangular faces
{
static const std::array<std::array<unsigned int, 3>, 6> table = {
{{{2, 1, 0}},
const unsigned int face,
const unsigned char face_orientation) const override
{
- if (face > 1) // QUAD
+ if (face > 1) // One of the quadrilateral faces
{
return GeometryInfo<3>::standard_to_real_face_vertex(
vertex,
Utilities::get_bit(face_orientation, 2),
Utilities::get_bit(face_orientation, 1));
}
- else // TRI
+ else // One of the triangular faces
{
static const std::array<std::array<unsigned int, 3>, 6> table = {
{{{0, 2, 1}},