Move almost identical code into QMeshShape


QTriangleMeshShape and QConvexMeshShape are basically identical so move
the common code into a new class QMeshShape. Using an enum
ShapeType to differentiate the mesh types.

Pick-to: 6.6 6.5
Task-number: QTBUG-109818
Change-Id: Ia2e72eb84d14bcf1a38fa0d2df046805d175a5ad
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
commitf43d8bf1aed47da1ae13d73d59e439ce6ef53348
parent3012a8a2b9c6bc5315f3a597300b5d447840c6a5
authorJonas Karlsson <jonas.karlsson@qt.io>
committerJonas Karlsson <jonas.karlsson@qt.io>
commit timeWed, 6 Dec 2023 16:18:03 +0100