82 const bool orient =
false
93 const bool orient =
false
103 inline label
order()
const;
121 inline static scalar
area
201#include "triangle2DI.H"
A 1D vector of objects of type <T> with a fixed length <N>.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
static scalar absTol
Absolute tolerance.
static void writeOBJ(Ostream &os, const triangle2D &tri, label offset)
Write the triangle in OBJ format.
bool isSame(const triangle2D &triB) const
Return true if triB is the same as this triangle.
bool pointInside(const vector2D &p) const
Return true if t point p is inside this triangle.
static bool lineIntersects(const vector2D &a, const vector2D &b, const vector2D &c, const vector2D &d)
Return true if lines ab and cd intersect.
static label nClosePoints(const triangle2D &triA, const triangle2D &triB)
Return the number of similar points between two triangles.
scalar area() const noexcept
Return the triangle area.
static bool lineIntersectionPoint(const vector2D &a, const vector2D &b, const vector2D &c, const vector2D &d, vector2D &intersection)
static bool lineSegmentIntersectionPoint(const vector2D &lp1, const vector2D &lp2, const vector2D &sp1, const vector2D &sp2, vector2D &intersection)
label snapClosePoints(const triangle2D &triB)
void interArea(const triangle2D &triB, vector2D ¢re, scalar &area) const
Return the intersection centre and area.
static scalar relTol
Relative tolerance.
bool overlaps(const triangle2D &triB) const
Return true if triB overlaps.
vector2D centre() const
Return the triangle centre.
bool contains(const triangle2D &tri) const
Return true if tri is within this triangle.
OBJstream os(runTime.globalPath()/outputName)