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

In This Topic
    FindClosestTriangle(IFace,Point) 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 _
    ) As IList(Of HitTriangle)
    public IList<HitTriangle> FindClosestTriangle( 
       IFace entity,
       Point mousePos
    )

    Parameters

    entity
    The entity
    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
    If the entity is inside a devDept.Eyeshot.Entities.BlockReference, it must be set as current.The triangles intersection points are in the EntityList.Parents coordinate system.
    See Also