Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
faceAreaIntersect Class Reference

Face intersection class. More...

Collaboration diagram for faceAreaIntersect:
Collaboration graph
[legend]

Public Types

enum  triangulationMode { tmFan, tmMesh }
 

Public Member Functions

 faceAreaIntersect (const pointField &pointsA, const pointField &pointsB, const DynamicList< face > &trisA, const DynamicList< face > &trisB, const bool reverseB=false, const bool cacheTriangulation=false)
 
bool cacheTriangulation () const
 
const DynamicList< triPointstriangles () const
 
DynamicList< triPoints > & triangles ()
 
void calc (const face &faceA, const face &faceB, const vector &n, scalar &area, vector &centroid) const
 
bool overlaps (const face &faceA, const face &faceB, const vector &n, const scalar threshold) const
 

Static Public Member Functions

static scalar & tolerance ()
 
static void triangulate (const face &f, const pointField &points, const triangulationMode &triMode, faceList &faceTris)
 
static void triangleFan (const face &f, DynamicList< face > &faces)
 

Static Public Attributes

static const Enum< triangulationModetriangulationModeNames_
 

Detailed Description

Face intersection class.

Source files

Definition at line 55 of file faceAreaIntersect.H.

Member Enumeration Documentation

◆ triangulationMode

Enumerator
tmFan 
tmMesh 

Definition at line 59 of file faceAreaIntersect.H.

Constructor & Destructor Documentation

◆ faceAreaIntersect()

faceAreaIntersect ( const pointField pointsA,
const pointField pointsB,
const DynamicList< face > &  trisA,
const DynamicList< face > &  trisB,
const bool  reverseB = false,
const bool  cacheTriangulation = false 
)

Definition at line 379 of file faceAreaIntersect.C.

Member Function Documentation

◆ tolerance()

Foam::scalar & tolerance ( )
inlinestatic

Definition at line 120 of file faceAreaIntersectI.H.

◆ triangulate()

void triangulate ( const face f,
const pointField points,
const triangulationMode triMode,
faceList faceTris 
)
static

Definition at line 401 of file faceAreaIntersect.C.

References Foam::exit(), f(), Foam::FatalError, FatalErrorInFunction, points, and List::resize().

Here is the call graph for this function:

◆ cacheTriangulation()

bool cacheTriangulation ( ) const
inline

Definition at line 126 of file faceAreaIntersectI.H.

◆ triangles() [1/2]

Foam::DynamicList< Foam::triPoints > & triangles ( ) const
inline

Definition at line 133 of file faceAreaIntersectI.H.

Referenced by faceAreaWeightAMI::calcInterArea().

Here is the caller graph for this function:

◆ triangles() [2/2]

DynamicList<triPoints>& triangles ( )
inline

◆ triangleFan()

void triangleFan ( const face f,
DynamicList< face > &  faces 
)
inlinestatic

Definition at line 25 of file faceAreaIntersectI.H.

References DynamicList::append(), and f().

Referenced by advancingFrontAMI::triangulatePatch().

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

◆ calc()

void calc ( const face faceA,
const face faceB,
const vector n,
scalar &  area,
vector centroid 
) const

Definition at line 444 of file faceAreaIntersect.C.

References Foam::fieldTypes::area, n, and VectorSpace< Vector< scalar >, scalar, 3 >::zero.

Referenced by faceAreaWeightAMI::calcInterArea().

Here is the caller graph for this function:

◆ overlaps()

bool overlaps ( const face faceA,
const face faceB,
const vector n,
const scalar  threshold 
) const

Definition at line 505 of file faceAreaIntersect.C.

References Foam::fieldTypes::area, n, and Foam::Zero.

Referenced by faceAreaWeightAMI::overlaps().

Here is the caller graph for this function:

Member Data Documentation

◆ triangulationModeNames_

const Foam::Enum< Foam::faceAreaIntersect::triangulationMode > triangulationModeNames_
static

Definition at line 65 of file faceAreaIntersect.H.


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