Contains various triangle static functions. More...
Static Public Member Functions | |
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. More... | |
static bool | intersectBb (const triPointRef &tri, const treeBoundBox &cubeBb) |
Intersect triangle with bounding box. More... | |
static bool | intersectBb (const point &p0, const point &p1, const point &p2, const treeBoundBox &cubeBb) |
Intersect triangle with bounding box. More... | |
static bool | intersect (const point &va0, const point &va10, const point &va20, const point &basePoint, const vector &normal, point &pInter0, point &pInter1) |
Intersect triangle with plane. More... | |
static bool | intersect (const point &va0, const point &va10, const point &va20, const point &vb0, const point &vb10, const point &vb20, point &pInter0, point &pInter1) |
Intersection of two triangles intersect. More... | |
Contains various triangle static functions.
Definition at line 51 of file triangleFuncs.H.
|
static |
Intersect triangle with parallel edges aligned with axis i0.
Returns true (and intersection in pInter) if any of them intersects triangle. Used in intersectBb.
Definition at line 60 of file triangleFuncs.C.
References Foam::constant::atomic::alpha, beta(), Foam::det(), forAll, Foam::mag(), s, and u0.
|
static |
Intersect triangle with bounding box.
Definition at line 144 of file triangleFuncs.C.
References triangle< Point, PointRef >::a(), triangle< Point, PointRef >::b(), triangle< Point, PointRef >::c(), PointHit< PointType >::distance(), Foam::constant::electromagnetic::e, treeBoundBox::edges, stdFoam::end(), intersection::HALF_RAY, PointHit< PointType >::hit(), triangle< Point, PointRef >::intersection(), treeBoundBox::intersects(), points, and treeBoundBox::points().
|
static |
Intersect triangle with bounding box.
Definition at line 188 of file triangleFuncs.C.
References p0.
|
static |
Intersect triangle with plane.
Definition at line 202 of file triangleFuncs.C.
References Foam::mag(), and Foam::sqrt().
|
static |
Intersection of two triangles intersect.
Definition at line 320 of file triangleFuncs.C.
References SortableList< T >::indices(), Foam::mag(), pts, and SortableList< T >::sort().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.