Public Member Functions | Friends | List of all members
labelledTri Class Reference

A triFace with additional (region) index. More...

Inheritance diagram for labelledTri:
Inheritance graph
[legend]
Collaboration diagram for labelledTri:
Collaboration graph
[legend]

Public Member Functions

 labelledTri ()
 
 labelledTri (const triFace &tri, const label region=0)
 
 labelledTri (const label a, const label b, const label c, const label region=0)
 
 labelledTri (const labelUList &list)
 
 labelledTri (std::initializer_list< label >)
 
 labelledTri (Istream &is)
 
label index () const noexcept
 
label & index () noexcept
 
void setIndex (const label idx) noexcept
 
label region () const noexcept
 
label & region () noexcept
 
- Public Member Functions inherited from triFace
 triFace ()
 
 triFace (const label a, const label b, const label c)
 
 triFace (std::initializer_list< label > list)
 
 triFace (const labelUList &list)
 
 triFace (const labelUList &list, const FixedList< label, 3 > &indices)
 
 triFace (Istream &is)
 
label & second ()
 
label second () const
 
label collapse ()
 
void flip ()
 
pointField points (const UList< point > &pts) const
 
face triFaceFace () const
 
triPointRef tri (const UList< point > &points) const
 
point centre (const UList< point > &points) const
 
template<class Type >
Type average (const UList< point > &unused, const Field< Type > &fld) const
 
vector areaNormal (const UList< point > &points) const
 
vector unitNormal (const UList< point > &points) const
 
 FOAM_DEPRECATED_FOR (2018-12, "areaNormal() or unitNormal()") vector normal(const UList< point > &points) const
 
scalar mag (const UList< point > &points) const
 
label nTriangles () const noexcept
 
triFace reverseFace () const
 
label which (const label pointLabel) const
 
label nextLabel (const label i) const
 
label prevLabel (const label i) const
 
label thisLabel (const label i) const
 
scalar sweptVol (const UList< point > &opts, const UList< point > &npts) const
 
tensor inertia (const UList< point > &points, const point &refPt=vector::zero, scalar density=1.0) const
 
pointHit ray (const point &p, const vector &q, const UList< point > &points, const intersection::algorithm=intersection::FULL_RAY, const intersection::direction dir=intersection::VECTOR) const
 
pointHit intersection (const point &p, const vector &q, const UList< point > &points, const intersection::algorithm alg, const scalar tol=0.0) const
 
pointHit intersection (const point &p, const vector &q, const point &ctr, const UList< point > &points, const intersection::algorithm alg, const scalar tol=0.0) const
 
pointHit nearestPoint (const point &p, const UList< point > &points) const
 
pointHit nearestPointClassify (const point &p, const UList< point > &points, label &nearType, label &nearLabel) const
 
int sign (const point &p, const UList< point > &points, const scalar tol=SMALL) const
 
label nEdges () const noexcept
 
Foam::edge edge (const label edgei) const
 
vector edge (const label edgei, const UList< point > &pts) const
 
Foam::edge rcEdge (const label edgei) const
 
vector rcEdge (const label edgei, const UList< point > &pts) const
 
edgeList edges () const
 
edgeList rcEdges () const
 
int edgeDirection (const Foam::edge &e) const
 
unsigned hash_code (unsigned seed=0) const
 
Foam::edge faceEdge (label edgei) const
 
- Public Member Functions inherited from FixedList< label, 3 >
void writeEntry (const word &keyword, Ostream &os) const
 
 FixedList ()=default
 
 FixedList (const T &val)
 
 FixedList (const Foam::zero)
 
 FixedList (const T list[N])
 
 FixedList (const FixedList< T, N > &list)
 
 FixedList (FixedList< T, N > &&list)
 
 FixedList (std::initializer_list< T > list)
 
 FixedList (const UList< T > &list)
 
 FixedList (const FixedList< T, AnyNum > &list, const FixedList< label, N > &indices)
 
 FixedList (const UList< T > &list, const FixedList< label, N > &indices)
 
 FixedList (const SLList< T > &list)
 
 FixedList (Istream &is)
 
autoPtr< FixedList< T, N > > clone () const
 
const Tcdata () const noexcept
 
Tdata () noexcept
 
const char * cdata_bytes () const noexcept
 
char * data_bytes () noexcept
 
Tfirst () noexcept
 
const Tfirst () const noexcept
 
Tlast () noexcept
 
const Tlast () const noexcept
 
label fcIndex (const label i) const
 
const TfcValue (const label i) const
 
TfcValue (const label i)
 
label rcIndex (const label i) const
 
const TrcValue (const label i) const
 
TrcValue (const label i)
 
void checkStart (const label start) const
 
void checkSize (const label size) const
 
void checkIndex (const label i) const
 
bool uniform () const
 
label find (const T &val, label pos=0) const
 
label rfind (const T &val, label pos=-1) const
 
bool found (const T &val, label pos=0) const
 
void resize (const label n)
 
void resize_nocopy (const label n)
 
void setSize (const label n)
 
void fill (const T &val)
 
void fill (const Foam::zero)
 
void moveFirst (const label i)
 
void moveLast (const label i)
 
void swapFirst (const label i)
 
void swapLast (const label i)
 
void transfer (FixedList< T, N > &list)
 
Toperator[] (const label i)
 
const Toperator[] (const label i) const
 
void operator= (const T list[N])
 
void operator= (const UList< T > &list)
 
void operator= (const SLList< T > &list)
 
void operator= (std::initializer_list< T > list)
 
void operator= (const T &val)
 
void operator= (const Foam::zero)
 
void operator= (const FixedList< T, N > &list)
 
void operator= (FixedList< T, N > &&list)
 
iterator begin () noexcept
 
const_iterator begin () const noexcept
 
iterator end () noexcept
 
const_iterator end () const noexcept
 
const_iterator cbegin () const noexcept
 
const_iterator cend () const noexcept
 
reverse_iterator rbegin ()
 
const_reverse_iterator rbegin () const
 
reverse_iterator rend ()
 
const_reverse_iterator rend () const
 
const_reverse_iterator crbegin () const
 
const_reverse_iterator crend () const
 
void swap (FixedList< T, N > &other)
 
bool operator== (const FixedList< T, N > &list) const
 
bool operator!= (const FixedList< T, N > &list) const
 
bool operator< (const FixedList< T, N > &list) const
 
bool operator> (const FixedList< T, N > &list) const
 
bool operator<= (const FixedList< T, N > &list) const
 
bool operator>= (const FixedList< T, N > &list) const
 
IstreamreadList (Istream &is)
 
OstreamwriteList (Ostream &os, const label shortLen=0) const
 

Friends

Istreamoperator>> (Istream &, labelledTri &)
 
Ostreamoperator<< (Ostream &, const labelledTri &)
 

Additional Inherited Members

- Public Types inherited from FixedList< label, 3 >
typedef T value_type
 
typedef Tpointer
 
typedef Treference
 
typedef Titerator
 
typedef label size_type
 
typedef label difference_type
 
typedef std::reverse_iterator< iteratorreverse_iterator
 
typedef std::reverse_iterator< const_iteratorconst_reverse_iterator
 
- Static Public Member Functions inherited from triFace
static int compare (const triFace &a, const triFace &b)
 
- Static Public Member Functions inherited from FixedList< label, 3 >
static const FixedList< T, N > & null ()
 
static std::streamsize size_bytes () noexcept
 
static std::streamsize byteSize ()
 
static constexpr bool empty () noexcept
 
static constexpr label size () noexcept
 
static constexpr unsigned max_size () noexcept
 
- Public Attributes inherited from FixedList< label, 3 >
const typedef Tconst_pointer
 
const typedef Tconst_reference
 
const typedef Tconst_iterator
 
- Protected Member Functions inherited from FixedList< label, 3 >
void writeEntry (Ostream &os) const
 

Detailed Description

A triFace with additional (region) index.

Source files

Definition at line 53 of file labelledTri.H.

Constructor & Destructor Documentation

◆ labelledTri() [1/6]

labelledTri ( )
inline

Definition at line 53 of file labelledTriI.H.

◆ labelledTri() [2/6]

labelledTri ( const triFace tri,
const label  region = 0 
)
inline

Definition at line 61 of file labelledTriI.H.

◆ labelledTri() [3/6]

labelledTri ( const label  a,
const label  b,
const label  c,
const label  region = 0 
)
inline

Definition at line 72 of file labelledTriI.H.

◆ labelledTri() [4/6]

labelledTri ( const labelUList list)
inlineexplicit

Definition at line 84 of file labelledTriI.H.

◆ labelledTri() [5/6]

labelledTri ( std::initializer_list< label >  list)
inlineexplicit

Definition at line 93 of file labelledTriI.H.

◆ labelledTri() [6/6]

labelledTri ( Istream is)
inline

Definition at line 102 of file labelledTriI.H.

References Foam::operator>>().

Here is the call graph for this function:

Member Function Documentation

◆ index() [1/2]

label index ( ) const
inlinenoexcept

Definition at line 108 of file labelledTri.H.

Referenced by Foam::operator<<(), and Foam::operator>>().

Here is the caller graph for this function:

◆ index() [2/2]

label& index ( )
inlinenoexcept

Definition at line 114 of file labelledTri.H.

◆ setIndex()

void setIndex ( const label  idx)
inlinenoexcept

Definition at line 120 of file labelledTri.H.

◆ region() [1/2]

label region ( ) const
inlinenoexcept

Definition at line 126 of file labelledTri.H.

Referenced by booleanSurface::booleanSurface(), and boundaryMesh::readTriSurface().

Here is the caller graph for this function:

◆ region() [2/2]

label& region ( )
inlinenoexcept

Definition at line 132 of file labelledTri.H.

Friends And Related Function Documentation

◆ operator>>

Istream& operator>> ( Istream ,
labelledTri  
)
friend

◆ operator<<

Ostream& operator<< ( Ostream ,
const labelledTri  
)
friend

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