Eyeshot 10 WinForms API Reference
FindClosestTriangle(SelectedItem,Point) Method

WinForms Assembly > devDept.Eyeshot Namespace > ViewportLayout Class > FindClosestTriangle Method : FindClosestTriangle(SelectedItem,Point) Method
The item
Mouse cursor position (zero on top)
Finds the closest triangle to the viewer of the specified item (which may include the parents stack for nested entities).
Syntax
'Declaration
 
Public Overloads Function FindClosestTriangle( _
   ByVal item As ViewportLayout.SelectedItem, _
   ByVal mousePos As Point _
) As IList(Of HitTriangle)
public IList<HitTriangle> FindClosestTriangle( 
   ViewportLayout.SelectedItem item,
   Point mousePos
)

Parameters

item
The item
mousePos
Mouse cursor position (zero on top)

Return Value

A sorted (by distance from the viewer) list of devDept.Eyeshot.Entities.HitTriangle found under the mouse cursor.
Remarks
The triangles intersection points are in the EntityList.Parents coordinate system.
See Also

Reference

ViewportLayout Class
ViewportLayout Members
Overload List
FindClosestVertex(Point,Double,Point3D) Method