Model.FindClosestTriangle (SelectedItem, Point) 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
) As IList(Of HitTriangle)
This language is not supported or no code example is available.
public IList<HitTriangle> FindClosestTriangle( 
SelectedItem item
Point mousePos 
)
This language is not supported or no code example is available.

Parameters

item
SelectedItem

The item

mousePos
Point

Mouse cursor position (zero on top)

Return Value

IList<HitTriangle>

A sorted (by distance from the viewer) list of HitTriangle found under the mouse cursor.

Remarks
 
The triangles intersection points are in the EntityList.Parents coordinate system.

.NET Framework

Supported in: 4.5, 4.6, 4.7

In this article

Definition