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.
public HitVertex FindClosestVertex( 
Entity entity
Point mousePos
double maxDistance 
)
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.

Remarks
 
The returned point is in the coordinate space of the EntityList.CurrentBlockReference so, if there is a current BlockReference, to get the 3D world coordinates of the point you need to transform it by the EntityList.CurrentTransformation.

.NET Framework

Supported in: 4.5, 4.6, 4.7

In this article

Definition