Eyeshot 11 WinForms API Reference
WinForms Assembly / devDept.Eyeshot Namespace / ViewportLayout Class / FindClosestTriangle Method / FindClosestTriangle(SelectedItem,Point,Point3D,Int32) Method
The item
Mouse cursor position
Closest triangle intersection point in the EntityList.Parents coordinate system.
Closest triangle index

In This Topic
    FindClosestTriangle(SelectedItem,Point,Point3D,Int32) 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, _
       ByRef hitPoint As Point3D, _
       ByRef hitTriangleIndex As Integer _
    ) As Integer
    public int FindClosestTriangle( 
       ViewportLayout.SelectedItem item,
       Point mousePos,
       out Point3D hitPoint,
       out int hitTriangleIndex
    )

    Parameters

    item
    The item
    mousePos
    Mouse cursor position
    hitPoint
    Closest triangle intersection point in the EntityList.Parents coordinate system.
    hitTriangleIndex
    Closest triangle index

    Return Value

    The numbers of triangles found under the mouse cursor.
    See Also