class QPickingProxy#

Can be used to provide an alternate QGeometryView used only for picking. More

Inheritance diagram of PySide6.Qt3DRender.Qt3DRender.QPickingProxy

Synopsis#

Methods#

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

Detailed Description#

Picking can be an expensive operation, especially if the mesh has a lot of vertices. QPickProxy can be used to provide an alternative geometry, usually with fewer primitives, which will be used for picking, while the GeometryRenderer instance will be used for rendering.

Note

Do not use a QPickingProxy if the application requires picking coordinates to match the rendered mesh.

Note

The picking algorithm uses a bounding volume hierarchy to optimize out entities who’s bounding volume does not intersect the picking ray. For that hierarchy, the bounding volume of the renderered entity is used (or one explicitly set using a QBoundingVolume component) will be used rather than the one of the proxy.

__init__([parent=None])#
Parameters:

parentQNode

Constructs a new QPickingProxy with parent.