30 inline Foam::label Foam::triIntersect::location::noi()
108 return isSrcPoint() && !isTgtPoint();
114 return !isSrcPoint() && isTgtPoint();
120 return isSrcPoint() && isTgtPoint();
138 <<
"Source point requested from non-source-point location"
152 <<
"Target point requested from non-source-point location"
163 if (!isIntersection())
166 <<
"Source edge requested from non-intersection location"
177 if (!isIntersection())
180 <<
"Target edge requested from non-intersection location"
bool isTgtNotSrcPoint() const
Return whether the location is a target point and not a source.
location()
Construct null.
static location intersection(const label srcEi, const label tgtEi)
Construct an intersection location between a source and a.
bool isTgtPoint() const
Return whether the location is a target point.
label tgtEdgei() const
Return the target edge index.
static location srcTgtPoint(const label srcPi, const label tgtPi)
Construct a source and target point location.
bool isSrcNotTgtPoint() const
Return whether the location is a source point and not a target.
static location tgtPoint(const label tgtPi)
Construct a target point location.
label srcPointi() const
Return the source point index.
label tgtPointi() const
Return the target point index.
bool isSrcAndTgtPoint() const
Return whether the location is a source point and a target point.
bool isNull() const
Return whether the location is null.
bool isIntersection() const
Return whether the location is an intersection.
bool isSrcPoint() const
Return whether the location is a source point.
label srcEdgei() const
Return the source edge index.
static location srcPoint(const label srcPi)
Construct a source point location.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
bool operator!=(const location &a, const location &b)
bool operator==(const location &a, const location &b)
errorManipArg< error, int > exit(error &err, const int errNo=1)
Pair< label > labelPair
Label pair.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
labelList second(const UList< labelPair > &p)
labelList first(const UList< labelPair > &p)
static const label labelMax
Class to encapsulate the topology of a point within a triangle intersection.