QPickTriangleEvent

PyQt5.Qt3DRender.QPickTriangleEvent

Inherits from QPickEvent.

Description

The QPickTriangleEvent class holds information when a triangle is picked.

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

This contains the details of the triangle that was picked.

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

See also

QPickingSettings, QPickEvent, QObjectPicker, QAttribute.

Methods

__init__()

TODO


__init__(Union[QPointF, QPoint], QVector3D, QVector3D, float, int, int, int, int)

*

QPickTriangleEvent::QPickTriangleEvent Constructs a new QPickEvent with the given parameters * position, * worldIntersection, * localIntersection, * distance, * triangleIndex, * vertex1Index, * vertex2Index and * vertex3Index


__init__(Union[QPointF, QPoint], QVector3D, QVector3D, float, int, int, int, int, Buttons, int, int, QVector3D)

TODO


triangleIndex() → int

QPickTriangleEvent::triangleIndex Returns the index of the picked triangle


uvw() → QVector3D

Returns the 3D coordinates u,v, and w.


vertex1Index() → int

QPickTriangleEvent::vertex1Index Returns the index of the first point of the picked triangle


vertex2Index() → int

QPickTriangleEvent::vertex2Index Returns the index of the second point of the picked triangle


vertex3Index() → int

QPickTriangleEvent::vertex3Index Returns index of third point of picked triangle