deal.II version GIT relicensing-6809-ge913b9bb34 2026-09-25 17:20:01+00:00
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
internal::TriangulationImplementation::TriaObjectsOrientations Class Reference

#include <deal.II/grid/tria_objects_orientations.h>

Detailed Description

Class storing orientation information for various objects in a Triangulation.

Definition at line 38 of file tria_objects_orientations.h.

Public Member Functions

 TriaObjectsOrientations ()
 
 TriaObjectsOrientations (const std::size_t n_objects, const unsigned int n_faces_per_object)
 
std::size_t n_objects () const
 
void reinit (const std::size_t n_objects, const unsigned int n_faces_per_object)
 
void resize (const std::size_t n_objects)
 
std::size_t memory_consumption () const
 
types::geometric_orientation get_combined_orientation (const int index, const unsigned int face_no) const
 
bool get_orientation (const int index, const unsigned int face_no) const
 
bool get_rotation (const int index, const unsigned int face_no) const
 
bool get_flip (const int index, const unsigned int face_no) const
 
void set_combined_orientation (const int index, const unsigned int face_no, const types::geometric_orientation value)
 
template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

std::size_t n_stored_objects
 
unsigned int faces_per_object
 
std::vector< types::geometric_orientation > face_orientations
 

Constructor & Destructor Documentation

◆ TriaObjectsOrientations() [1/2]

internal::TriangulationImplementation::TriaObjectsOrientations::TriaObjectsOrientations ( )
inline

Constructor.

Definition at line 142 of file tria_objects_orientations.h.

◆ TriaObjectsOrientations() [2/2]

internal::TriangulationImplementation::TriaObjectsOrientations::TriaObjectsOrientations ( const std::size_t  n_objects,
const unsigned int  n_faces_per_object 
)
inline

Constructor. Sets up objects in the default orientation (orientation = true).

Definition at line 149 of file tria_objects_orientations.h.

Member Function Documentation

◆ n_objects()

std::size_t internal::TriangulationImplementation::TriaObjectsOrientations::n_objects ( ) const
inline

Return number of geometric objects stored by this class.

Definition at line 191 of file tria_objects_orientations.h.

◆ reinit()

void internal::TriangulationImplementation::TriaObjectsOrientations::reinit ( const std::size_t  n_objects,
const unsigned int  n_faces_per_object 
)
inline

Reset the object to a default state.

Definition at line 159 of file tria_objects_orientations.h.

◆ resize()

void internal::TriangulationImplementation::TriaObjectsOrientations::resize ( const std::size_t  n_objects)
inline

Change the number of stored objects. New objects are constructed in the default orientation (true, false, false).

Definition at line 171 of file tria_objects_orientations.h.

◆ memory_consumption()

std::size_t internal::TriangulationImplementation::TriaObjectsOrientations::memory_consumption ( ) const
inline

Return the size of objects of this kind.

Definition at line 181 of file tria_objects_orientations.h.

◆ get_combined_orientation()

types::geometric_orientation internal::TriangulationImplementation::TriaObjectsOrientations::get_combined_orientation ( const int  index,
const unsigned int  face_no 
) const
inline

Get the combined orientation of the object, as described in the class documentation.

Definition at line 201 of file tria_objects_orientations.h.

◆ get_orientation()

bool internal::TriangulationImplementation::TriaObjectsOrientations::get_orientation ( const int  index,
const unsigned int  face_no 
) const
inline

Get the orientation bit of the object.

Definition at line 215 of file tria_objects_orientations.h.

◆ get_rotation()

bool internal::TriangulationImplementation::TriaObjectsOrientations::get_rotation ( const int  index,
const unsigned int  face_no 
) const
inline

Get the rotation bit of the object.

Definition at line 224 of file tria_objects_orientations.h.

◆ get_flip()

bool internal::TriangulationImplementation::TriaObjectsOrientations::get_flip ( const int  index,
const unsigned int  face_no 
) const
inline

Get the flip bit of the object.

Definition at line 233 of file tria_objects_orientations.h.

◆ set_combined_orientation()

void internal::TriangulationImplementation::TriaObjectsOrientations::set_combined_orientation ( const int  index,
const unsigned int  face_no,
const types::geometric_orientation  value 
)
inline

Set the combined orientation of the object, as described in the class documentation.

Definition at line 242 of file tria_objects_orientations.h.

◆ serialize()

template<class Archive >
void internal::TriangulationImplementation::TriaObjectsOrientations::serialize ( Archive &  ar,
const unsigned int  version 
)

Read or write the data of this object to or from a stream for the purpose of serialization using the BOOST serialization library.

Definition at line 257 of file tria_objects_orientations.h.

Member Data Documentation

◆ n_stored_objects

std::size_t internal::TriangulationImplementation::TriaObjectsOrientations::n_stored_objects
private

Number of objects.

Definition at line 127 of file tria_objects_orientations.h.

◆ faces_per_object

unsigned int internal::TriangulationImplementation::TriaObjectsOrientations::faces_per_object
private

Number of faces per object.

Definition at line 132 of file tria_objects_orientations.h.

◆ face_orientations

std::vector<types::geometric_orientation> internal::TriangulationImplementation::TriaObjectsOrientations::face_orientations
private

Orientations.

Definition at line 137 of file tria_objects_orientations.h.


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