Eyeshot 10 WinForms API Reference
FindClosestVertex(Entity,Point,Double) Method

WinForms Assembly > devDept.Eyeshot Namespace > ViewportLayout Class > FindClosestVertex Method : FindClosestVertex(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
Looks for the vertex of the specified entity whose 2D screen projection is closer to the mouse cursor.
Syntax
'Declaration
 
Public Overloads Function FindClosestVertex( _
   ByVal entity As Entity, _
   ByVal mousePos As Point, _
   ByVal maxDistance As Double _
) As HitVertex
public HitVertex FindClosestVertex( 
   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 closest vertex, if any is found.
Remarks
The returned point is in the coordinate space of the CurrentBlockReference so, if there is a current BlockReference, to get the 3D world coordinates of the point you need to transform it by the CurrentTransformation.
See Also

Reference

ViewportLayout Class
ViewportLayout Members
Overload List
IsCloserVertex Method