Environment.FindClosestVertex (Point, Double, Type, Int32) Method
Looks for the model vertex whose 2D screen projection is closer to the mouse cursor skipping entities different from entType.
Public Function FindClosestVertex( _
ByVal mousePos As Point, _
ByVal maxDistance As Double, _
ByVal entType As Type, _
ByRef closestIndex As Integer _
) 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 from mouse cursor position
-
entType
-
Type
Entity type
-
closestIndex
-
int
The closest vertex index
Return Value
int
The entity index if the closest vertex is nearer than maxDistance and the entity type is entType, -1 otherwise.
.NET Framework
Supported in: 4.5, 4.6, 4.7