An edge is a list of two point labels. The functionality it provides supports the discretisation on a 2-D flat mesh. More...
Classes | |
struct | Hash |
struct | hasher |
Public Member Functions | |
edge () | |
edge (const label from, const label to) | |
edge (const labelPair &pair) | |
edge (const FixedList< label, 2 > &list) | |
edge (const label from, const label to, const bool doSort) | |
edge (const FixedList< label, 2 > &list, const bool doSort) | |
edge (const UList< label > &list, const FixedList< label, 2 > &indices) | |
edge (Istream &is) | |
label | start () const |
label & | start () |
label | end () const |
label & | end () |
edge | reverseEdge () const |
label | minVertex () const |
label | maxVertex () const |
bool | valid () const |
bool | found (const label pointLabel) const |
label | which (const label pointLabel) const |
bool | connects (const edge &other) const |
label | commonVertex (const edge &other) const |
label | otherVertex (const label pointLabel) const |
label | collapse () |
label | count () const |
bool | empty () const |
void | clear () |
bool | insert (const label index) |
template<class InputIterator > | |
label | insert (InputIterator begIter, InputIterator endIter) |
label | insert (std::initializer_list< label > list) |
template<unsigned N> | |
label | insert (const FixedList< label, N > &list) |
label | insert (const labelUList &list) |
label | erase (const label index) |
template<class InputIterator > | |
label | erase (InputIterator begIter, InputIterator endIter) |
label | erase (std::initializer_list< label > list) |
template<unsigned N> | |
label | erase (const FixedList< label, N > &list) |
label | erase (const labelUList &list) |
point | centre (const UList< point > &pts) const |
vector | vec (const UList< point > &pts) const |
vector | unitVec (const UList< point > &pts) const |
scalar | mag (const UList< point > &pts) const |
linePointRef | line (const UList< point > &pts) const |
label & | operator[] (const label i) |
const label & | operator[] (const label i) const |
unsigned | hash_code (unsigned seed=0) const |
template<class InputIterator > | |
Foam::label | insert (InputIterator begIter, InputIterator endIter) |
template<unsigned N> | |
Foam::label | insert (const FixedList< label, N > &list) |
template<class InputIterator > | |
Foam::label | erase (InputIterator begIter, InputIterator endIter) |
template<unsigned N> | |
Foam::label | erase (const FixedList< label, N > &list) |
const T & | second () const noexcept |
T & | second () noexcept |
![]() | |
Pair ()=default | |
Pair (const T &f, const T &s) | |
Pair (T &&f, T &&s) | |
Pair (const std::pair< T, T > &vals) | |
Pair (std::pair< T, T > &&vals) | |
Pair (const FixedList< T, 2 > &list) | |
Pair (const T &f, const T &s, const bool doSort) | |
Pair (const FixedList< T, 2 > &list, const bool doSort) | |
Pair (Istream &is) | |
const T & | second () const noexcept |
T & | second () noexcept |
const T & | other (const T &a) const |
bool | sorted () const |
void | flip () |
void | sort () |
Static Public Member Functions | |
static int | compare (const edge &a, const edge &b) |
![]() | |
static int | compare (const Pair< T > &a, const Pair< T > &b) |
Static Public Attributes | |
static const char *const | typeName = "edge" |
An edge is a list of two point labels. The functionality it provides supports the discretisation on a 2-D flat mesh.
The edge is implemented as a Pair/FixedList of labels. As well as geometrically relevant methods, it also provides methods similar to HashSet for additional convenience. Valid point labels are always non-negative (since they correspond to addressing within the mesh). The value '-1' is used to tag invalid point labels that correspond conceptually to open 'slots', which can be filled with a HashSet-like functionality.
|
inline |
Definition at line 34 of file edgeI.H.
Referenced by cellShape::edge().
|
inline |
Definition at line 88 of file edgeI.H.
Referenced by directionInfo::edgeToFaceIndex(), cellFeatures::isFeaturePoint(), PrimitivePatch<::Foam::List< labelledTri >, pointField >::meshEdge(), PrimitivePatch<::Foam::List< labelledTri >, pointField >::meshEdges(), slidingInterface::modifyMotionPoints(), Foam::polyMeshZipUpCells(), PatchTools::sortedPointEdges(), and extendedEdgeMesh::sortPointsAndEdges().
|
inline |
|
inline |
Definition at line 99 of file edgeI.H.
Referenced by directionInfo::edgeToFaceIndex(), cellFeatures::isFeaturePoint(), slidingInterface::modifyMotionPoints(), Foam::polyMeshZipUpCells(), PatchTools::sortedPointEdges(), and extendedEdgeMesh::sortPointsAndEdges().
|
inline |
|
inline |
Definition at line 218 of file edgeI.H.
Referenced by hexCell::reverseEdge(), and tetCell::reverseEdge().
|
inline |
Definition at line 123 of file edgeI.H.
Referenced by multiWorldConnections::addConnectionById(), multiWorldConnections::addConnectionByName(), multiWorldConnections::getCommById(), and multiWorldConnections::getCommByName().
|
inline |
Definition at line 129 of file edgeI.H.
Referenced by edge::commonVertex(), edge::connects(), intersectedSurface::intersectedSurface(), patchEdgeFaceRegions::updateEdge(), and patchEdgeFaceRegions::updateFace().
Definition at line 159 of file edgeI.H.
References edge::found().
Referenced by Foam::calcProximityOfFeatureEdges().
|
inline |
Definition at line 165 of file edgeI.H.
References edge::found().
Referenced by removePoints::countPointUsage(), and GTSsurfaceFormat< Face >::read().
|
inline |
Definition at line 181 of file edgeI.H.
Referenced by removePoints::countPointUsage(), searchableExtrudedCircle::findParametricNearest(), and GTSsurfaceFormat< Face >::read().
|
inline |
|
inline |
|
inline |
Definition at line 321 of file edgeI.H.
References UList::begin(), UList::end(), and insert().
|
inline |
|
inline |
|
inline |
Definition at line 387 of file edgeI.H.
References UList::begin(), UList::end(), and erase().
|
inline |
Definition at line 395 of file edgeI.H.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.
Referenced by surfaceFeatures::nearestEdges().
|
inline |
Definition at line 410 of file edgeI.H.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.
Referenced by searchableExtrudedCircle::findParametricNearest(), slidingInterface::modifyMotionPoints(), surfaceFeatures::nearestFeatEdge(), extendedEdgeMesh::sortPointsAndEdges(), and cuttingSurfaceBase::walkCellCuts().
|
inline |
Definition at line 425 of file edgeI.H.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, Foam::mag(), s, and Foam::Zero.
Referenced by cellFeatures::isFeaturePoint().
Definition at line 443 of file edgeI.H.
References Foam::mag().
Referenced by face::longestEdge(), and surfaceFeatures::trimFeatures().
|
inline |
Definition at line 449 of file edgeI.H.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.
Referenced by slidingInterface::modifyMotionPoints(), and syncTools::syncEdgeList().
Definition at line 26 of file edgeI.H.
References Foam::constant::physicoChemical::b, and Pair::compare().
Referenced by Foam::operator!=(), Foam::operator==(), and syncTools::syncEdgeList().
|
inline |
Definition at line 466 of file edgeI.H.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.
|
inline |
Definition at line 479 of file edgeI.H.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.
|
inline |
Definition at line 284 of file edge.H.
References Pair::second().
Referenced by edge::hasher::operator()().
|
inline |
Definition at line 315 of file edgeI.H.
References FixedList::begin(), FixedList::end(), and insert().
|
inline |
Definition at line 381 of file edgeI.H.
References FixedList::begin(), FixedList::end(), and erase().
|
inlinenoexcept |
Referenced by isoSurfaceTopo::interpolateTemplate(), isoSurfaceTopo::isoSurfaceTopo(), and slidingInterface::modifyMotionPoints().
|
inlinenoexcept |
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.