- Qt 6.8
- Qt 3D
- QML Types
- Qt3D.Render (Deprecated)
- PickTriangleEvent
- Qt 6.8.2 Reference Documentation

# PickTriangleEvent QML Type

PickTriangleEvent holds information when a triangle is picked. More...

Import Statement: | `import Qt3D.Render 2.8`
In C++: | QPickTriangleEvent
Status: | Deprecated

- List of all members, including inherited members

## Properties

- triangleIndex : uint
- vertex1Index : uint
- vertex2Index : uint
- vertex3Index : uint

## Detailed Description

When QPickingSettings::pickMode() is set to QPickingSettings::TrianglePicking, the signals on QObjectPicker will carry an instance of QPickTriangleEvent.

This contains the details of the triangle that was picked.

Note: In case of indexed rendering, the point indices are relative to the array of indices, not the array of coordinates.

See also PickingSettings, PickEvent, ObjectPicker, and Attribute.

## Property Documentation

triangleIndex : uint `[read-only]`

Specifies the triangle index of the event

vertex1Index : uint `[read-only]`

Specifies the index of the first vertex in the triangle

vertex2Index : uint `[read-only]`

Specifies the index of the second vertex in the triangle

vertex3Index : uint `[read-only]`

Specifies the index of the third vertex in the triangle