Eyeshot 10 WinForms API Reference
FindClosestTriangle(IFace,Point,Point3D,Int32) Method

WinForms Assembly > devDept.Eyeshot Namespace > ViewportLayout Class > FindClosestTriangle Method : FindClosestTriangle(IFace,Point,Point3D,Int32) Method
The entity
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 entity.
Syntax
'Declaration
 
Public Overloads Function FindClosestTriangle( _
   ByVal entity As IFace, _
   ByVal mousePos As Point, _
   ByRef hitPoint As Point3D, _
   ByRef hitTriangleIndex As Integer _
) As Integer
public int FindClosestTriangle( 
   IFace entity,
   Point mousePos,
   out Point3D hitPoint,
   out int hitTriangleIndex
)

Parameters

entity
The entity
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