Face intersection class. More...
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< triPoints > | triangles () const |
DynamicList< triPoints > & | triangles () |
void | calc (const face &faceA, const face &faceB, const vector &n, scalar &area, vector ¢roid) 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< triangulationMode > | triangulationModeNames_ |
Face intersection class.
Definition at line 55 of file faceAreaIntersect.H.
enum triangulationMode |
Enumerator | |
---|---|
tmFan | |
tmMesh |
Definition at line 59 of file faceAreaIntersect.H.
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.
|
inlinestatic |
Definition at line 120 of file faceAreaIntersectI.H.
|
static |
Definition at line 401 of file faceAreaIntersect.C.
References Foam::exit(), f(), Foam::FatalError, FatalErrorInFunction, points, and List::resize().
|
inline |
Definition at line 126 of file faceAreaIntersectI.H.
|
inline |
Definition at line 133 of file faceAreaIntersectI.H.
Referenced by faceAreaWeightAMI::calcInterArea().
|
inline |
|
inlinestatic |
Definition at line 25 of file faceAreaIntersectI.H.
References DynamicList::append(), and f().
Referenced by advancingFrontAMI::triangulatePatch().
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().
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().
|
static |
Definition at line 65 of file faceAreaIntersect.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.