MiscFunctions..::..PointOnTriangleFromLine Method

Finds the point on the triangle made by a line. If that line is not going to pass through the that triangle, then null is returned. The signed distance is positive if the vertex points to the triangle along the direction (ray). User can also specify whether the edges of the triangle are considered "inside."

Namespace:  TVGL
Assembly:  TessellationAndVoxelizationGeometryLibraryUniversal (in TessellationAndVoxelizationGeometryLibraryUniversal.dll)

Syntax


public static double[] PointOnTriangleFromLine(
	PolygonalFace face,
	Vertex vertex,
	double[] direction,
	out double signedDistance,
	bool onBoundaryIsInside
)
Public Shared Function PointOnTriangleFromLine ( _
	face As PolygonalFace, _
	vertex As Vertex, _
	direction As Double(), _
	<OutAttribute> ByRef signedDistance As Double, _
	onBoundaryIsInside As Boolean _
) As Double()
public:
static array<double^>^ PointOnTriangleFromLine(
	PolygonalFace^ face, 
	Vertex^ vertex, 
	array<double^>^ direction, 
	[OutAttribute] double^% signedDistance, 
	bool^ onBoundaryIsInside
)

Parameters

face
Type: TVGL..::..PolygonalFace
The face.
vertex
Type: TVGL..::..Vertex
The vertex.
direction
Type: array<Double>[]()[][]
The direction.
signedDistance
Type: Double%
The signed distance.
onBoundaryIsInside
Type: Boolean
if set to true [on boundary is inside].

Return Value

Vertex.