Utility.TriangleTriangleIntersection (Double(), Double(), Double(), Double(), Double(), Double(), out Boolean) Method

Fast Triangle-Triangle intersection between ccw T1[p1,q1,r1] and ccw T2[p2,q1,r2] (From the Devillers and Guigue algorithm).
Public Shared Function TriangleTriangleIntersection( _ 
ByVal p1 As Double(), _ 
ByVal q1 As Double(), _ 
ByVal r1 As Double(), _ 
ByVal p2 As Double(), _ 
ByVal q2 As Double(), _ 
ByVal r2 As Double(), _ 
ByRef touch As Boolean
) As Boolean
This language is not supported or no code example is available.
public static bool TriangleTriangleIntersection( 
double[] p1
double[] q1
double[] r1
double[] p2
double[] q2
double[] r2
out bool touch 
)
This language is not supported or no code example is available.

Parameters

p1
double[]

coordinates of the first point3D of triangle 1

q1
double[]

coordinates of the second point3D of triangle 1

r1
double[]

coordinates of the third point3D of triangle 1

p2
double[]

coordinates of the first point3D of triangle 2

q2
double[]

coordinates of the second point3D of triangle 2

r2
double[]

coordinates of the third point3D of triangle 2

touch
bool

True when a vertex or edge of one triangle lies on the plane of other

Return Value

bool

True if the Triangles intersects each other, false otherwise

.NET Framework

Supported in: 4.8

In this article

Definition