Environment.FindClosestVertices (Entity, Point, Double) Method

Looks for the model vertices of the specified entity whose 2D screen projections are closer to the mouse cursor.
Public Function FindClosestVertices( _ 
ByVal entity As Entity, _ 
ByVal mousePos As Point, _ 
ByVal maxDistance As Double
) As List(Of HitVertex)
This language is not supported or no code example is available.
public List<HitVertex> FindClosestVertices( 
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

List<HitVertex>

The list of vertices of the specified entity nearer than maxDistance.

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

.NET Framework

Supported in: 4.5, 4.6, 4.7

In this article

Definition