Navigation
API > API/Runtime > API/Runtime/GeometryCore
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)
| Name | TIntrTriangle3Triangle3 |
| Type | class |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/Intersection/IntrTriangle3Triangle3.h |
| Include Path | #include "Intersection/IntrTriangle3Triangle3.h" |
Syntax
template<typename Real>
class TIntrTriangle3Triangle3
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Intersection/IntrTriangle3Triangle3.h | |||
TIntrTriangle3Triangle3
(
const TTriangle3< Real >& T0, |
Intersection/IntrTriangle3Triangle3.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Points | TVector< Real > | Intersection/IntrTriangle3Triangle3.h | ||
| Quantity | int | Intersection points (for point, line, polygon) only first Quantity elements are relevant | Intersection/IntrTriangle3Triangle3.h | |
| Result | EIntersectionResult | Result flags | Intersection/IntrTriangle3Triangle3.h | |
| Type | EIntersectionType | Intersection/IntrTriangle3Triangle3.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TIntrTriangle3Triangle3 * Compute() |
Intersection/IntrTriangle3Triangle3.h | ||
bool Find() |
Intersection/IntrTriangle3Triangle3.h | ||
bool GetReportCoplanarIntersection() |
Intersection/IntrTriangle3Triangle3.h | ||
Real GetTolerance() |
Intersection/IntrTriangle3Triangle3.h | ||
TTriangle3< Real > GetTriangle0() |
Intersection/IntrTriangle3Triangle3.h | ||
TTriangle3< Real > GetTriangle1() |
Intersection/IntrTriangle3Triangle3.h | ||
void SetReportCoplanarIntersection
(
bool bReportCoplanarIntersectionIn |
Intersection/IntrTriangle3Triangle3.h | ||
void SetResult
(
bool IsIntersecting |
Store an externally-computed binary yes/no result | Intersection/IntrTriangle3Triangle3.h | |
| Store an externally-computed segment intersection result | Intersection/IntrTriangle3Triangle3.h | ||
void SetResultNone() |
Store an externally-computed no-intersection result | Intersection/IntrTriangle3Triangle3.h | |
void SetTolerance
(
Real ToleranceIn |
Intersection/IntrTriangle3Triangle3.h | ||
void SetTriangle0
(
const TTriangle3< Real >& Triangle0In |
Intersection/IntrTriangle3Triangle3.h | ||
void SetTriangle1
(
const TTriangle3< Real >& Triangle1In |
Intersection/IntrTriangle3Triangle3.h | ||
bool Test() |
Intersection/IntrTriangle3Triangle3.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool ContainsPoint
(
const TTriangle3< Real >& triangle, |
Intersection/IntrTriangle3Triangle3.h | ||
bool GetCoplanarIntersection
(
const TPlane3< Real >& plane, |
Intersection/IntrTriangle3Triangle3.h | ||
bool IntersectsSegment
(
const TPlane3< Real >& plane, |
Intersection/IntrTriangle3Triangle3.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static bool Intersects
(
const TTriangle3< Real >& Triangle0, |
Intersection/IntrTriangle3Triangle3.h | ||
| Solve a common sub-problem for triangle-triangle intersection find the sub-segment (or point) where a triangle intersects a coplanar segment | Intersection/IntrTriangle3Triangle3.h | ||
static void ProjectOntoAxis
(
const TTriangle3< Real >& triangle, |
Intersection/IntrTriangle3Triangle3.h | ||
static void TrianglePlaneRelations
(
const TTriangle3< Real >& triangle, |
Intersection/IntrTriangle3Triangle3.h |