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