![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <IntrTriangle3Triangle3.h>
Public Member Functions | |
| TIntrTriangle3Triangle3 () | |
| TIntrTriangle3Triangle3 (const TTriangle3< Real > &T0, const TTriangle3< Real > &T1) | |
| void | SetResult (const TVector< Real > &A, const TVector< Real > &B) |
| void | SetResultNone () |
| void | SetResult (bool IsIntersecting) |
| TTriangle3< Real > | GetTriangle0 () const |
| TTriangle3< Real > | GetTriangle1 () const |
| bool | GetReportCoplanarIntersection () const |
| Real | GetTolerance () const |
| void | SetTriangle0 (const TTriangle3< Real > &Triangle0In) |
| void | SetTriangle1 (const TTriangle3< Real > &Triangle1In) |
| void | SetReportCoplanarIntersection (bool bReportCoplanarIntersectionIn) |
| void | SetTolerance (Real ToleranceIn) |
| TIntrTriangle3Triangle3 * | Compute () |
| bool | Find () |
| bool | Test () |
Static Public Member Functions | |
| static bool | Intersects (const TTriangle3< Real > &Triangle0, const TTriangle3< Real > &Triangle1, Real Tolerance=TMathUtil< Real >::ZeroTolerance) |
| static void | ProjectOntoAxis (const TTriangle3< Real > &triangle, const TVector< Real > &axis, Real &fmin, Real &fmax) |
| static void | TrianglePlaneRelations (const TTriangle3< Real > &triangle, const TPlane3< Real > &plane, TVector< Real > &distance, FIndex3i &sign, int &positive, int &negative, int &zero, Real Tolerance) |
| static int | IntersectTriangleWithCoplanarSegment (const TPlane3< Real > &plane, const TTriangle3< Real > &triangle, const TVector< Real > &end0, const TVector< Real > &end1, TVector< Real > &OutA, TVector< Real > &OutB, Real Tolerance) |
Public Attributes | |
| EIntersectionResult | Result = EIntersectionResult::NotComputed |
| EIntersectionType | Type = EIntersectionType::Empty |
| int | Quantity = 0 |
| TVector< Real > | Points [6] |
Protected Member Functions | |
| bool | ContainsPoint (const TTriangle3< Real > &triangle, const TPlane3< Real > &plane, const TVector< Real > &point) |
| bool | IntersectsSegment (const TPlane3< Real > &plane, const TTriangle3< Real > &triangle, const TVector< Real > &end0, const TVector< Real > &end1) |
| bool | GetCoplanarIntersection (const TPlane3< Real > &plane, const TTriangle3< Real > &tri0, const TTriangle3< Real > &tri1) |
Protected Attributes | |
| TTriangle3< Real > | Triangle0 |
| TTriangle3< Real > | Triangle1 |
| Real | Tolerance = TMathUtil<Real>::ZeroTolerance |
| bool | bReportCoplanarIntersection = false |
Compute intersection between 3D triangles use Test() for fast boolean query, does not compute intersection info use Find() to compute full information By default fully-contained co-planar triangles are not reported as intersecting. Call SetReportCoplanarIntersection(true) to handle this case (more expensive)
|
inline |
|
inline |
|
inline |
|
inlineprotected |
|
inline |
|
inlineprotected |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inlineprotected |
|
inlinestatic |
Solve a common sub-problem for triangle-triangle intersection – find the sub-segment (or point) where a triangle intersects a coplanar segment
| plane | The plane the triangle is on |
| triangle | The triangle to intersect |
| end0 | First point of line segment |
| end1 | Second point of line segment |
| OutA | First point of intersection between line segment and triangle (if any) |
| OutB | Second point of intersection between line segment and triangle (if any) |
| Tolerance | Tolerance to use for segment-triangle intersection |
|
inlinestatic |
|
inline |
|
inline |
Store an externally-computed binary yes/no result
|
inline |
Store an externally-computed segment intersection result
|
inline |
Store an externally-computed no-intersection result
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
protected |
| TVector<Real> UE::Geometry::TIntrTriangle3Triangle3< Real >::Points[6] |
| int UE::Geometry::TIntrTriangle3Triangle3< Real >::Quantity = 0 |
| EIntersectionResult UE::Geometry::TIntrTriangle3Triangle3< Real >::Result = EIntersectionResult::NotComputed |
|
protected |
|
protected |
|
protected |
| EIntersectionType UE::Geometry::TIntrTriangle3Triangle3< Real >::Type = EIntersectionType::Empty |