35 #ifndef triangleFuncs_H 36 #define triangleFuncs_H 77 static void setIntersection
79 const point& oppositeSidePt,
80 const scalar oppositeSign,
81 const point& thisSidePt,
82 const scalar thisSign,
108 const scalar maxLength,
128 const point& basePoint,
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
static bool intersectBb(const point &p0, const point &p1, const point &p2, const treeBoundBox &cubeBb)
Does triangle intersect bounding box.
Various triangle functions.
proxType
Enumeration defining nearness classification.
static bool intersect(const point &va0, const point &va10, const point &va20, const point &basePoint, const vector &normal, point &pInter0, point &pInter1)
Does triangle intersect plane. Return bool and set intersection segment.
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
Standard boundBox + extra functionality for use in octree.
static bool intersectAxesBundle(const point &V0, const point &V10, const point &V20, const label i0, const pointField &origin, const scalar maxLength, point &pInter)
Intersect triangle with parallel edges aligned with axis i0.