Details
-
Technical task
-
Resolution: Done
-
P1: Critical
-
None
-
Qt Quick 3D - 2021 - Weeks 5/6, Qt Quick 3D - 2021 - Weeks 7/8, Qt Quick 3D - 2021 Week 9 - 10, Qt Quick 3D - 2021 Week 11/12, Qt Quick 3D - 2021 Week 13/14, Qt Quick 3D - 2021 Week 15/16, Qt Quick 3D - 2021 Week 17/18, 2022 Qt Quick 3D: Week 17-18, 2022 Qt Quick 3D: Week 19-20, 2022 Qt Quick 3D: Week 21-22
Description
- The QSSGMeshUtilities namespace, that contains Mesh, MeshBuilder, etc. does not meet the basic criteria for Qt source code in multiple ways (readability, maintainability, robustness).
- More importantly, the existing system inherited back from Drive Design is not straightforward to extend: at latest in 6.2 the .mesh file format will need to be extended with new fields, while being backwards compatible when it comes to loading.
- There are also significant unused code paths.
- In addition, the approach of dumping memory behind data structures into files is not an accepted form of serialization in Qt, and raises potential issues given Qt's cross-plaformness.
To solve all this, update the mesh reading and writing code to be simple (QFile, QDataStream, etc.), extensible, and containing only what's used.