Expose mesh LOD generation and vertex welding from Quick3DUtils


Move the level-of-detail generation algorithm from the Assimp importer
plugin into QSSGMesh, next to the meshoptimizer wrappers it builds on,
behind a format-neutral interface: positions, normals and indexes go in,
LOD index sets come out, and vertices that need splitting for corrected
normals are reported to the caller. Normals may now be empty, which
skips normal correction, since glTF makes them optional. Also add
wrappers for meshoptimizer's multi-stream vertex remapping, which welds
bitwise-identical vertices across attribute streams. Both facilities
become reusable by the native glTF importer plugin added later in this
series; the Assimp plugin adapts its vertex data to the new interface
and its LOD output is unchanged. The welding and remapping wrappers are
new code rather than moved code, so add tests/auto/utils/mesh to cover
them.

Task-number: QTBUG-148576
Change-Id: I5461f400af8212426ea3ae5b467a9fb14647e97c
Reviewed-by: Christian Strømme <christian.stromme@qt.io>
commit743e72be34ba06900772e4e230d4bcaf25cb631b
parent8cb8417479bc11d4467d89750b8e751f00d9a273
authorAndy Nichols <andy.nichols@qt.io>
committerAndy Nichols <andy.nichols@qt.io>
commit timeTue, 1 Sep 2026 09:44:45 +0000