Eyeshot 11 WinForms API Reference
WinForms Assembly / devDept.Eyeshot Namespace / ViewportLayout Class / FindClosestTriangle Method / FindClosestTriangle(SelectedItem,Point) Method
The item
Mouse cursor position (zero on top)

In This Topic
    FindClosestTriangle(SelectedItem,Point) Method
    In This Topic
    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