2-D triangle and queries More...
Public Member Functions | |
triangle2D (const vector2D &a, const vector2D &b, const vector2D &c, const bool orient=false) | |
triangle2D (const vector &a3d, const vector &b3d, const vector &c3d, const vector &axis1, const vector &axis2, const bool orient=false) | |
label | order () const |
label | snapClosePoints (const triangle2D &triB) |
void | interArea (const triangle2D &triB, vector2D ¢re, scalar &area) const |
scalar | interArea (const triangle2D &triB) const |
bool | overlaps (const triangle2D &triB) const |
scalar | area () const noexcept |
vector2D | centre () const |
bool | contains (const triangle2D &tri) const |
bool | isSame (const triangle2D &triB) const |
bool | pointInside (const vector2D &p) const |
![]() | |
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 T * | cdata () const noexcept |
T * | data () noexcept |
const char * | cdata_bytes () const noexcept |
char * | data_bytes () noexcept |
T & | first () noexcept |
const T & | first () const noexcept |
T & | last () noexcept |
const T & | last () const noexcept |
label | fcIndex (const label i) const |
const T & | fcValue (const label i) const |
T & | fcValue (const label i) |
label | rcIndex (const label i) const |
const T & | rcValue (const label i) const |
T & | rcValue (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) |
T & | operator[] (const label i) |
const T & | operator[] (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 |
Istream & | readList (Istream &is) |
Ostream & | writeList (Ostream &os, const label shortLen=0) const |
Static Public Member Functions | |
static void | writeOBJ (Ostream &os, const triangle2D &tri, label offset) |
static label | nClosePoints (const triangle2D &triA, const triangle2D &triB) |
static scalar | area (const vector2D &a, const vector2D &b, const vector2D &c) |
static bool | lineSegmentIntersectionPoint (const vector2D &lp1, const vector2D &lp2, const vector2D &sp1, const vector2D &sp2, vector2D &intersection) |
static bool | lineIntersectionPoint (const vector2D &a, const vector2D &b, const vector2D &c, const vector2D &d, vector2D &intersection) |
static bool | lineIntersects (const vector2D &a, const vector2D &b, const vector2D &c, const vector2D &d) |
![]() | |
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 |
Static Public Attributes | |
static int | debug = 0 |
static scalar | relTol = 1e-8 |
static scalar | absTol = 1e-10 |
Additional Inherited Members | |
![]() | |
typedef T | value_type |
typedef T * | pointer |
typedef T & | reference |
typedef T * | iterator |
typedef label | size_type |
typedef label | difference_type |
typedef std::reverse_iterator< iterator > | reverse_iterator |
typedef std::reverse_iterator< const_iterator > | const_reverse_iterator |
![]() | |
const typedef T * | const_pointer |
const typedef T & | const_reference |
const typedef T * | const_iterator |
![]() | |
void | writeEntry (Ostream &os) const |
triangle2D | ( | const vector2D & | a, |
const vector2D & | b, | ||
const vector2D & | c, | ||
const bool | orient = false |
||
) |
Definition at line 41 of file triangle2D.C.
References Foam::constant::physicoChemical::b, and Foam::constant::universal::c.
triangle2D | ( | const vector & | a3d, |
const vector & | b3d, | ||
const vector & | c3d, | ||
const vector & | axis1, | ||
const vector & | axis2, | ||
const bool | orient = false |
||
) |
Definition at line 65 of file triangle2D.C.
|
inline |
Definition at line 192 of file triangle2DI.H.
References Foam::mag(), and Foam::sign().
Referenced by triangle2D::interArea().
|
inlinestatic |
Definition at line 26 of file triangle2DI.H.
References Foam::endl(), Foam::nl, and os().
|
inlinestatic |
Definition at line 45 of file triangle2DI.H.
References forAll, and Foam::stringOps::match().
Definition at line 72 of file triangle2DI.H.
References Foam::constant::physicoChemical::b, Foam::constant::universal::c, and Vector2D< Cmpt >::perp().
|
inlinestatic |
Definition at line 94 of file triangle2DI.H.
References Foam::expressions::patchExpr::debug, Foam::endl(), Foam::mag(), Foam::nl, os(), Vector2D< Cmpt >::perp(), s, Vector2D< Cmpt >::x(), and Vector2D< Cmpt >::y().
|
inlinestatic |
Definition at line 150 of file triangle2DI.H.
References Foam::constant::physicoChemical::b, and Foam::constant::universal::c.
|
inlinestatic |
Definition at line 163 of file triangle2DI.H.
References Foam::constant::physicoChemical::b, Foam::constant::universal::c, DebugInfo, and Foam::endl().
Foam::label snapClosePoints | ( | const triangle2D & | triB | ) |
Definition at line 86 of file triangle2D.C.
References forAll, Vector2D< Cmpt >::isClose(), and Foam::stringOps::match().
Referenced by faceAreaWeightAMI2D::storeInterArea().
void interArea | ( | const triangle2D & | triB, |
vector2D & | centre, | ||
scalar & | area | ||
) | const |
Definition at line 112 of file triangle2D.C.
References Foam::fieldTypes::area, Foam::constant::physicoChemical::c1, Foam::expressions::patchExpr::debug, Foam::endl(), Foam::Info, n, OFstream::name(), Foam::name(), Foam::nl, triangle2D::order(), os(), p0, Foam::meshTools::writeOBJ(), Vector2D< Cmpt >::x(), VectorSpace< Vector2D< scalar >, scalar, 2 >::zero, and Foam::Zero.
Foam::scalar interArea | ( | const triangle2D & | triB | ) | const |
Definition at line 258 of file triangle2D.C.
References Foam::fieldTypes::area, and Foam::Zero.
bool overlaps | ( | const triangle2D & | triB | ) | const |
Definition at line 269 of file triangle2D.C.
References triangle2D::contains(), and Foam::j1().
|
inlinenoexcept |
Definition at line 186 of file triangle2DI.H.
|
inline |
Definition at line 85 of file triangle2DI.H.
|
inline |
Definition at line 198 of file triangle2DI.H.
Referenced by triangle2D::overlaps().
|
inline |
Definition at line 207 of file triangle2DI.H.
Definition at line 218 of file triangle2DI.H.
References p.
|
static |
Definition at line 63 of file triangle2D.H.
|
static |
Definition at line 66 of file triangle2D.H.
|
static |
Definition at line 69 of file triangle2D.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.