Segment3D.IntersectWith (Point3D, Point3D, Point3D, Boolean, out Point3D, out Double, out Double) Method

Intersects the 3D segment with a triangle.
Public Function IntersectWith( _ 
ByVal p1 As Point3D, _ 
ByVal p2 As Point3D, _ 
ByVal p3 As Point3D, _ 
ByVal ray As Boolean, _ 
ByRef intPoint As Point3D, _ 
ByRef s As Double, _ 
ByRef t As Double
) As Boolean
This language is not supported or no code example is available.
public bool IntersectWith( 
Point3D p1
Point3D p2
Point3D p3
bool ray
out Point3D intPoint
out double s
out double t 
)
This language is not supported or no code example is available.

Parameters

p1
Point3D

First triangle vertex

p2
Point3D

Second triangle vertex

p3
Point3D

Third triangle vertex

ray
bool

When true, it considers a ray starting from P0 to infinite

intPoint
Point3D

The intersection point (if exists)

s
double

The triangle s coordinate

t
double

The triangle t coordinate

Return Value

bool

True if the intersection was found, false otherwise.

.NET Framework

Supported in: 4.8

In this article

Definition