Environment.FindClosestVertex (Point, Double, HitVertex) Method
Looks for the model vertex whose 2D screen projection is closer to the mouse cursor.
Public Function FindClosestVertex( _
ByVal mousePos As Point, _
ByVal maxDistance As Double, _
ByRef closestVertex As HitVertex _
) As Integer
This language is not supported or no code example is available.
This language is not supported or no code example is available.
Parameters
-
mousePos
-
Point
Mouse position (zero on top)
-
maxDistance
-
double
Limit the search to points at this distance in pixels from mouse cursor position
-
closestVertex
-
HitVertex
The closest vertex
Return Value
int
The entity index if the closest vertex is nearer than maxDistance, -1 otherwise.
.NET Framework
Supported in: 4.5, 4.6, 4.7