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

In This Topic
    FindClosestTriangle(IFace,Point,Point3D,Int32) Method
    In This Topic
    Finds the closest triangle to the viewer of the specified entity.
    Syntax
    'Declaration
     
    Public Overloads Function FindClosestTriangle( _
       ByVal entity As IFace, _
       ByVal mousePos As Point, _
       ByRef hitPoint As Point3D, _
       ByRef hitTriangleIndex As Integer _
    ) As Integer
    public int FindClosestTriangle( 
       IFace entity,
       Point mousePos,
       out Point3D hitPoint,
       out int hitTriangleIndex
    )

    Parameters

    entity
    The entity
    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