assimp/code/AssetLib/glTF2
fvbj 2d98f6a880
Fix identity matrix check (#5445)
* Fix identity matrix check

Adds an extra epsilon value to check the matrix4x4 identity. The method is also used to export to GLTF/GLTF2 format to check node transformation matrices. The epsilon value can be set using AI_CONFIG_CHECK_IDENTITY_MATRIX_EPSILON with the default value set to 10e-3f for backward compatibility of legacy code.

* Fix type of float values in the unit test

* Update matrix4x4.inl

Fix typo

* Update matrix4x4.inl

Remove dead code.

* Add isIdentity-Test

* Update AssimpAPITest_aiMatrix4x4.cpp

---------

Co-authored-by: Kim Kulling <kimkulling@users.noreply.github.com>
2024-02-06 21:24:41 +01:00
..
glTF2Asset.h More GLTF loading hardening (#5415) 2024-02-04 21:23:31 +01:00
glTF2Asset.inl More GLTF loading hardening (#5415) 2024-02-04 21:23:31 +01:00
glTF2AssetWriter.h Merge branch 'master' into refactor/KHR_material_specular 2022-11-29 17:35:52 +01:00
glTF2AssetWriter.inl glTF KHR_materials_specular fixes 2023-12-11 11:09:18 +01:00
glTF2Exporter.cpp Fix identity matrix check (#5445) 2024-02-06 21:24:41 +01:00
glTF2Exporter.h Fix identity matrix check (#5445) 2024-02-06 21:24:41 +01:00
glTF2Importer.cpp glTF KHR_materials_specular fixes 2023-12-11 11:09:18 +01:00
glTF2Importer.h Update glTF2Importer.h 2023-06-08 20:56:14 +02:00