Click or drag to resize

UtilTriangleIntersectsPlane Method

Does the supplied triangle intersect the plane.

Namespace: Demo3D.Common
Assembly: Demo3D.Common (in Demo3D.Common.dll) Version: 19.01.00
Syntax
C#
public static bool TriangleIntersectsPlane(
	Vector3 N,
	Vector3 P,
	Vector3 V1,
	Vector3 V2,
	Vector3 V3
)

Parameters

N  Vector3
Normal to the plane.
P  Vector3
Point on the plane.
V1  Vector3
First vertex of triangle.
V2  Vector3
Second vertex of triangle.
V3  Vector3
Third vertex of triangle.

Return Value

Boolean
True if the triangle intersects the plane (including being co-planar with the plane, or one or two of the vertices being on the plane), false otherwise.
See Also