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