Environment.FindClosestVertices (Point, Double) Method

Looks for the model vertices whose 2D screen projections are closer to the mouse than the maxDistance.
Public Function FindClosestVertices( _ 
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( 
Point mousePos
double maxDistance 
)
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

Return Value

List<HitVertex>

The list of vertices 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