Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/Intersection > API/Runtime/GeometryCore/Intersection/TIntrTriangle3Triangle3
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/Intersection/IntrTriangle3Triangle3.h |
| Include | #include "Intersection/IntrTriangle3Triangle3.h" |
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
)
Remarks
Solve a common sub-problem for triangle-triangle intersection find the sub-segment (or point) where a triangle intersects a coplanar segment Number of points representing the intersection result (0 for none, 1 for point, 2 for segment)
Parameters
| Name | Description |
|---|---|
| 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 |