Model.FindClosestTriangle (SelectedItem, Point, Point3D, Int32) Method

Finds the closest triangle to the viewer of the specified item (which may include the parents stack for nested entities)..
Public Function FindClosestTriangle( _ 
ByVal item As SelectedItem, _ 
ByVal mousePos As Point, _ 
ByRef hitPoint As Point3D, _ 
ByRef hitTriangleIndex As Integer
) As Integer
This language is not supported or no code example is available.
public int FindClosestTriangle( 
SelectedItem item
Point mousePos
out Point3D hitPoint
out int hitTriangleIndex 
)
This language is not supported or no code example is available.

Parameters

item
SelectedItem

The item

mousePos
Point

Mouse cursor position

hitPoint
Point3D

Closest triangle intersection point in the EntityList.Parents coordinate system.

hitTriangleIndex
int

Closest triangle index

Return Value

int

The numbers of triangles found under the mouse cursor.

.NET Framework

Supported in: 4.5, 4.6, 4.7

In this article

Definition