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

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

    Parameters

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