Eyeshot 11 WinForms API Reference
WinForms Assembly / devDept.Eyeshot Namespace / ViewportLayout Class / FindClosestVertices Method / FindClosestVertices(Entity,Point,Double) Method
The entity to process
Mouse position (zero on top)
Limit the search to points at this distance in pixels from mouse cursor position

In This Topic
    FindClosestVertices(Entity,Point,Double) Method
    In This Topic
    Looks for the model vertices of the specified entity whose 2D screen projections are closer to the mouse cursor.
    Syntax
    'Declaration
     
    Public Overloads Function FindClosestVertices( _
       ByVal entity As Entity, _
       ByVal mousePos As Point, _
       ByVal maxDistance As Double _
    ) As List(Of HitVertex)
    public List<HitVertex> FindClosestVertices( 
       Entity entity,
       Point mousePos,
       double maxDistance
    )

    Parameters

    entity
    The entity to process
    mousePos
    Mouse position (zero on top)
    maxDistance
    Limit the search to points at this distance in pixels from mouse cursor position

    Return Value

    The list of vertices of the specified entity nearer than maxDistance.
    Remarks
    The returned points are in the coordinate space of the CurrentBlockReference so, if there is a current BlockReference, to get the 3D world coordinates of the points you need to transform them by the CurrentTransformation.
    See Also