Eyeshot 10 WPF API Reference
FindClosestTriangle(SelectedItem,Point,Point3D,Int32) Method

WPF Assembly > devDept.Eyeshot Namespace > ViewportLayout Class > FindClosestTriangle Method : FindClosestTriangle(SelectedItem,Point,Point3D,Int32) Method
The item
Mouse cursor position
Closest triangle intersection point in the EntityList.Parents coordinate system.
Closest triangle index
Finds the closest triangle to the viewer of the specified item (which may include the parents stack for nested entities)..
Syntax
'Declaration
 
Public Overloads Function FindClosestTriangle( _
   ByVal item As ViewportLayout.SelectedItem, _
   ByVal mousePos As Point, _
   ByRef hitPoint As Point3D, _
   ByRef hitTriangleIndex As Integer _
) As Integer
public int FindClosestTriangle( 
   ViewportLayout.SelectedItem item,
   Point mousePos,
   out Point3D hitPoint,
   out int hitTriangleIndex
)

Parameters

item
The item
mousePos
Mouse cursor position
hitPoint
Closest triangle intersection point in the EntityList.Parents coordinate system.
hitTriangleIndex
Closest triangle index

Return Value

The numbers of triangles found under the mouse cursor.
See Also

Reference

ViewportLayout Class
ViewportLayout Members
Overload List
FindClosestVertex(Point,Double,Point3D) Method