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

WinForms Assembly > devDept.Eyeshot Namespace > ViewportLayout Class > FindClosestVertex Method : FindClosestVertex(Point,Double,Type,Int32) Method
Mouse position (zero on top)
Limit the search to points at this distance from mouse cursor position
Entity type
The closest vertex index
Looks for the model vertex whose 2D screen projection is closer to the mouse cursor skipping entities different from entType.
Syntax
'Declaration
 
Public Overloads Function FindClosestVertex( _
   ByVal mousePos As Point, _
   ByVal maxDistance As Double, _
   ByVal entType As Type, _
   ByRef closestIndex As Integer _
) As Integer
public int FindClosestVertex( 
   Point mousePos,
   double maxDistance,
   Type entType,
   out int closestIndex
)

Parameters

mousePos
Mouse position (zero on top)
maxDistance
Limit the search to points at this distance from mouse cursor position
entType
Entity type
closestIndex
The closest vertex index

Return Value

The entity index if the closest vertex is nearer than maxDistance and the entity type is entType, -1 otherwise.
See Also

Reference

ViewportLayout Class
ViewportLayout Members
Overload List
IsCloserVertex Method