QPickingProxy¶
Can be used to provide an alternate QGeometryView used only for picking. More…
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.
- class PySide6.Qt3DRender.Qt3DRender.QPickingProxy([parent=None])¶
- Parameters
parent –
PySide6.Qt3DCore.Qt3DCore.QNode
Constructs a new QPickingProxy
with parent
.
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.