TIntrTriangle3Triangle3::IntersectTriangleWithCoplanarSegment

Solve a common sub-problem for triangle-triangle intersection find the sub-segment (or point) where a triangle intersects a coplanar segment

Windows
MacOS
Linux

References

Module

GeometricObjects

Header

/Engine/Plugins/Experimental/GeometryProcessing/Source/GeometricObjects/Public/Intersection/IntrTriangle3Triangle3.h

Include

#include "Intersection/IntrTriangle3Triangle3.h"

Syntax

static int IntersectTriangleWithCoplanarSegment
(
    const TPlane3< Real > & plane,
    const TTriangle3< Real > & triangle,
    const FVector3< Real > & end0,
    const FVector3< Real > & end1,
    FVector3< Real > & OutA,
    FVector3< 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

Returns

Number of points representing the intersection result (0 for none, 1 for point, 2 for segment)

Parameters

Parameter

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss