Model.FindClosestTriangle (IFace, Point, out Point3D, out Int32) Method

Finds the closest triangle to the viewer of the specified entity.
Public Function FindClosestTriangle( _ 
ByVal entity As IFace, _ 
ByVal mousePos As Point, _ 
ByRef hitPoint As Point3D, _ 
ByRef hitTriangleIndex As Integer
) As Integer
This language is not supported or no code example is available.
public int FindClosestTriangle( 
IFace entity
Point mousePos
out Point3D hitPoint
out int hitTriangleIndex 
)
This language is not supported or no code example is available.

Parameters

entity
IFace

The entity

mousePos
Point

Mouse cursor position

hitPoint
Point3D

Closest triangle intersection point in the Environment.Parents coordinate system.

hitTriangleIndex
int

Closest triangle index

Return Value

int

The numbers of triangles found under the mouse cursor.

.NET Framework

Supported in: 4.8

In this article

Definition