Public Member Functions | |
bool | face_orientation (const unsigned int cell, const unsigned int face) const |
void | reserve_space (const unsigned int new_quads_in_pairs, const unsigned int new_quads_single=0) |
void | clear () |
void | monitor_memory (const unsigned int true_dimension) const |
unsigned int | memory_consumption () const |
Public Attributes | |
std::vector< bool > | line_orientations |
For quadrilaterals in 3D the data of TriaObjects needs to be extended, as we can obtain faces (quads) with lines in non-standard-orientation, therefore we declare a class TriaObjectsQuad3D, which additionaly contains a bool-vector of the line-orientations.
bool internal::Triangulation::TriaObjectsQuad3D::face_orientation | ( | const unsigned int | cell, | |
const unsigned int | face | |||
) | const [inline] |
The orientation of the face number face
of the cell with number cell
. The return value is true
, if the normal vector points the usual way (GeometryInfo::unit_normal_orientation) and false
if they point in opposite direction.
Reimplemented from internal::Triangulation::TriaObjects< TriaObject< 2 > >.
References line_orientations.
void internal::Triangulation::TriaObjectsQuad3D::reserve_space | ( | const unsigned int | new_quads_in_pairs, | |
const unsigned int | new_quads_single = 0 | |||
) |
Assert that enough space is allocated to accomodate new_quads_in_pairs
new quads, stored in pairs, plus new_quads_single
stored individually. This function does not only call vector::reserve()
, but does really append the needed elements.
Reimplemented from internal::Triangulation::TriaObjects< TriaObject< 2 > >.
void internal::Triangulation::TriaObjectsQuad3D::clear | ( | ) |
Clear all the data contained in this object.
Reimplemented from internal::Triangulation::TriaObjects< TriaObject< 2 > >.
void internal::Triangulation::TriaObjectsQuad3D::monitor_memory | ( | const unsigned int | true_dimension | ) | const |
Check the memory consistency of the different containers. Should only be called with the prepro flag DEBUG
set. The function should be called from the functions of the higher TriaLevel classes.
Reimplemented from internal::Triangulation::TriaObjects< TriaObject< 2 > >.
Determine an estimate for the memory consumption (in bytes) of this object.
Reimplemented from internal::Triangulation::TriaObjects< TriaObject< 2 > >.
In effect, this field has 4*n_quads
elements, being the number of quads times the four lines each has.
Referenced by face_orientation().