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

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

    Parameters

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

    Return Value

    The list of vertices nearer than maxDistance and belonging to entities of type entType.
    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