Details
Description
It appears that the function View3D.pick doesn't work when the Model to be picked uses custom geometry via QQuick3DGeometry, regardless of whether or not pickable: true is set on the Model. I have attached a modified version of the main.qml file from the customgeometry example from QtQuick3D with the following changes:
- Added a sphere which uses the built-in geometry #Sphere geometry.
- Made the default mesh type a custom triangle and made the triangle pickable.
- Added a MouseArea that calls View3D on left mouse click and prints the result to the console.
If you left click on the sphere the 3D position on the sphere corresponding to where you clicked will be printed in the console. If you left click on the triangle the origin position will be printed instead, the same as if you had left clicked on the background of the scene.