Fix TriangleMeshShape geometry cooking


The triangle mesh description needs to take the indices of the triangle
into account if present, as well as use the correct offsets and strides.
This is in contrast to the convex mesh that only needs to take the
points into account since it just creates a convex hull of them.

Fixes: QTBUG-120569
Pick-to: 6.7
Change-Id: Icb31f1eb78f9deb60382922fd8f54be477acd200
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
commitb8c5361782809a778900dbce11ad7190adb277e4
parent28c08eccbbb026aa769f81b35ea3ad483622bc05
authorJonas Karlsson <jonas.karlsson@qt.io>
committerJonas Karlsson <jonas.karlsson@qt.io>
commit timeMon, 22 Jan 2024 13:12:52 +0100