Classes | Public Member Functions | Static Public Member Functions | List of all members
triFace Class Reference

A triangular face using a FixedList of labels corresponding to mesh vertices. More...

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

Classes

struct  Hash
 
struct  hasher
 

Public Member Functions

 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
 

Static Public Member Functions

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
 

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
 
- 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 triangular face using a FixedList of labels corresponding to mesh vertices.

See also
Foam::face, Foam::triangle
Source files

Definition at line 65 of file triFace.H.

Constructor & Destructor Documentation

◆ triFace() [1/6]

triFace ( )
inline

Definition at line 58 of file triFaceI.H.

◆ triFace() [2/6]

triFace ( const label  a,
const label  b,
const label  c 
)
inline

Definition at line 65 of file triFaceI.H.

References Foam::constant::physicoChemical::b, and Foam::constant::universal::c.

◆ triFace() [3/6]

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

Definition at line 77 of file triFaceI.H.

◆ triFace() [4/6]

triFace ( const labelUList list)
inlineexplicit

Definition at line 83 of file triFaceI.H.

◆ triFace() [5/6]

triFace ( const labelUList list,
const FixedList< label, 3 > &  indices 
)
inline

Definition at line 90 of file triFaceI.H.

◆ triFace() [6/6]

triFace ( Istream is)
inline

Definition at line 99 of file triFaceI.H.

Member Function Documentation

◆ second() [1/2]

label& second ( )
inline

Definition at line 112 of file triFace.H.

References FixedList< label, 3 >::operator[]().

Here is the call graph for this function:

◆ second() [2/2]

label second ( ) const
inline

Definition at line 115 of file triFace.H.

References FixedList< label, 3 >::operator[]().

Here is the call graph for this function:

◆ collapse()

Foam::label collapse ( )
inline

Definition at line 107 of file triFaceI.H.

References n.

◆ flip()

void flip ( )
inline

Definition at line 134 of file triFaceI.H.

◆ points()

Foam::pointField points ( const UList< point > &  pts) const
inline

Definition at line 140 of file triFaceI.H.

References p.

Referenced by triFace::FOAM_DEPRECATED_FOR().

Here is the caller graph for this function:

◆ triFaceFace()

Foam::face triFaceFace ( ) const
inline

Definition at line 152 of file triFaceI.H.

◆ tri()

Foam::triPointRef tri ( const UList< point > &  points) const
inline

Definition at line 158 of file triFaceI.H.

References points.

Referenced by lumpedPointMovement::setInterpolator().

Here is the caller graph for this function:

◆ centre()

Foam::point centre ( const UList< point > &  points) const
inline

Definition at line 169 of file triFaceI.H.

References points.

◆ average()

Type average ( const UList< point > &  unused,
const Field< Type > &  fld 
) const

Definition at line 27 of file triFaceTemplates.C.

References fld.

◆ areaNormal()

Foam::vector areaNormal ( const UList< point > &  points) const
inline

Definition at line 180 of file triFaceI.H.

References points.

Referenced by triFace::FOAM_DEPRECATED_FOR().

Here is the caller graph for this function:

◆ unitNormal()

Foam::vector unitNormal ( const UList< point > &  points) const
inline

Definition at line 191 of file triFaceI.H.

References Foam::mag(), n, points, s, and Foam::Zero.

Referenced by wallBoundedParticle::trackToEdge().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FOAM_DEPRECATED_FOR()

FOAM_DEPRECATED_FOR ( 2018-  12,
"areaNormal() or unitNormal()"   
) const &
inline

Definition at line 154 of file triFace.H.

References triFace::areaNormal(), and triFace::points().

Here is the call graph for this function:

◆ mag()

Foam::scalar mag ( const UList< point > &  points) const
inline

Definition at line 199 of file triFaceI.H.

References Foam::mag(), and points.

Here is the call graph for this function:

◆ nTriangles()

Foam::label nTriangles ( ) const
inlinenoexcept

Definition at line 205 of file triFaceI.H.

◆ reverseFace()

Foam::triFace reverseFace ( ) const
inline

Definition at line 211 of file triFaceI.H.

References triFace().

Here is the call graph for this function:

◆ which()

Foam::label which ( const label  pointLabel) const
inline

Definition at line 218 of file triFaceI.H.

References FixedList::find().

Here is the call graph for this function:

◆ nextLabel()

Foam::label nextLabel ( const label  i) const
inline

Definition at line 230 of file triFaceI.H.

◆ prevLabel()

Foam::label prevLabel ( const label  i) const
inline

Definition at line 236 of file triFaceI.H.

◆ thisLabel()

Foam::label thisLabel ( const label  i) const
inline

Definition at line 224 of file triFaceI.H.

◆ sweptVol()

Foam::scalar sweptVol ( const UList< point > &  opts,
const UList< point > &  npts 
) const
inline

Definition at line 243 of file triFaceI.H.

◆ inertia()

Foam::tensor inertia ( const UList< point > &  points,
const point refPt = vector::zero,
scalar  density = 1.0 
) const
inline

Definition at line 276 of file triFaceI.H.

References points.

◆ ray()

Foam::pointHit ray ( const point p,
const vector q,
const UList< point > &  points,
const intersection::algorithm  alg = intersection::FULL_RAY,
const intersection::direction  dir = intersection::VECTOR 
) const
inline

Definition at line 288 of file triFaceI.H.

References p, and points.

◆ intersection() [1/2]

Foam::pointHit intersection ( const point p,
const vector q,
const UList< point > &  points,
const intersection::algorithm  alg,
const scalar  tol = 0.0 
) const
inline

Definition at line 302 of file triFaceI.H.

References p, and points.

◆ intersection() [2/2]

Foam::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
inline

Definition at line 315 of file triFaceI.H.

References p, and points.

◆ nearestPoint()

Foam::pointHit nearestPoint ( const point p,
const UList< point > &  points 
) const
inline

Definition at line 329 of file triFaceI.H.

References p, and points.

◆ nearestPointClassify()

Foam::pointHit nearestPointClassify ( const point p,
const UList< point > &  points,
label &  nearType,
label &  nearLabel 
) const
inline

Definition at line 339 of file triFaceI.H.

References p, and points.

◆ sign()

int sign ( const point p,
const UList< point > &  points,
const scalar  tol = SMALL 
) const
inline

Definition at line 351 of file triFaceI.H.

References p, and points.

◆ nEdges()

Foam::label nEdges ( ) const
inlinenoexcept

Definition at line 361 of file triFaceI.H.

◆ edge() [1/2]

Foam::edge edge ( const label  edgei) const
inline

Definition at line 367 of file triFaceI.H.

Referenced by triFace::faceEdge().

Here is the caller graph for this function:

◆ edge() [2/2]

Foam::vector edge ( const label  edgei,
const UList< point > &  pts 
) const
inline

Definition at line 374 of file triFaceI.H.

◆ rcEdge() [1/2]

Foam::edge rcEdge ( const label  edgei) const
inline

Definition at line 383 of file triFaceI.H.

◆ rcEdge() [2/2]

Foam::vector rcEdge ( const label  edgei,
const UList< point > &  pts 
) const
inline

Definition at line 393 of file triFaceI.H.

◆ edges()

Foam::edgeList edges ( ) const
inline

Definition at line 405 of file triFaceI.H.

◆ rcEdges()

Foam::edgeList rcEdges ( ) const
inline

Definition at line 422 of file triFaceI.H.

◆ edgeDirection()

int edgeDirection ( const Foam::edge e) const
inline

Definition at line 439 of file triFaceI.H.

References Foam::constant::electromagnetic::e.

◆ compare()

int compare ( const triFace a,
const triFace b 
)
inlinestatic

Definition at line 29 of file triFaceI.H.

References Foam::constant::physicoChemical::b.

Referenced by Foam::operator!=(), and Foam::operator==().

Here is the caller graph for this function:

◆ hash_code()

unsigned hash_code ( unsigned  seed = 0) const
inline

Definition at line 316 of file triFace.H.

Referenced by triFace::hasher::operator()().

Here is the caller graph for this function:

◆ faceEdge()

Foam::edge faceEdge ( label  edgei) const
inline

Definition at line 349 of file triFace.H.

References triFace::edge().

Here is the call graph for this function:

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