Make picking honor the material's cull mode


pick() only ever accepted front-facing triangles, so geometry rendered
with Material.NoCulling or FrontFaceCulling could be seen but not picked
from the back. Make triangleIntersect() two-sided and pass the subset
material's cull mode down through intersectWithBVH(), rejecting the face
orientation the material culls.

The facing test runs in model-local space, so also swap the cull mode
for models with a mirroring transform, which would otherwise get the
inverted result.

Fixes: QTBUG-140404
Pick-to: 6.12
Change-Id: I1bcbaae2f2b7d7fe52a210c9acdd005d8412bb07
Reviewed-by: Christian Strømme <christian.stromme@qt.io>
commit819f08d7ccf3171c6fa89f818f6a477d728ae84a
parent46f3b34354a05fdc202ab59893c4d1d238336bea
authorLuqiao Chen <luqiao.chen@qt.io>
committerAndy Nichols <andy.nichols@qt.io>
commit timeThu, 27 Aug 2026 10:30:49 +0000