assimp/code/AssetLib/X3D
Andre Schulz 9d71a275c3 X3D: Don't convert IndexedLineSet polylines with > 2 indices to triangles/polygons
Currently, when the coordIndex attribute of an IndexedLineSet contains a
polyline with > 2 indices, X3DGeoHelper::coordIdx_str2faces_arr() will
incorrectly determine the primitive type to be aiPrimitiveType_TRIANGLE or
aiPrimitiveType_POLYGON instead of aiPrimitiveType_LINE.

To fix this, this commit adds functions to explicitly handle an IndexedLineSet.

Fixes #3101
2024-01-09 20:55:51 +01:00
..
X3DExporter.cpp Apply modernize-use-emplace clang-tidy rule 2022-08-23 11:41:49 -04:00
X3DExporter.hpp Refactoring: Cleanup post-processing steps. 2023-04-16 18:20:14 +02:00
X3DGeoHelper.cpp X3D: Don't convert IndexedLineSet polylines with > 2 indices to triangles/polygons 2024-01-09 20:55:51 +01:00
X3DGeoHelper.h X3D: Don't convert IndexedLineSet polylines with > 2 indices to triangles/polygons 2024-01-09 20:55:51 +01:00
X3DImporter.cpp Trim Trailing Whitespace 2023-01-16 09:12:35 +01:00
X3DImporter.hpp Fix warning related to missing-noreturn. 2023-04-01 18:46:12 +08:00
X3DImporter_Geometry2D.cpp Merge branch 'master' into fix-msvc-emplace-warnings 2023-01-23 21:37:41 +01:00
X3DImporter_Geometry3D.cpp Use correct XmlParser-methods and add some missing casts 2021-12-13 18:06:23 +01:00
X3DImporter_Group.cpp X3D: simplistic attempt to avoid crashes due to nullptr access 2021-12-01 12:21:29 +01:00
X3DImporter_Light.cpp Fixes 2021-11-10 20:37:27 +01:00
X3DImporter_Macro.hpp apply fixes to more headers 2022-09-01 12:28:45 -04:00
X3DImporter_Metadata.cpp Fixes 2021-11-10 20:37:27 +01:00
X3DImporter_Networking.cpp Fixes 2021-11-10 20:37:27 +01:00
X3DImporter_Node.hpp Tidy Up Constructors and Destructors 2023-01-16 21:47:11 +01:00
X3DImporter_Postprocess.cpp X3D: Don't convert IndexedLineSet polylines with > 2 indices to triangles/polygons 2024-01-09 20:55:51 +01:00
X3DImporter_Rendering.cpp Fixes 2021-11-10 20:37:27 +01:00
X3DImporter_Shape.cpp Fixes 2021-11-10 20:37:27 +01:00
X3DImporter_Texturing.cpp Fixes 2021-11-10 20:37:27 +01:00
X3DXmlHelper.cpp Fix warning related to unreachable-code-return. 2023-04-29 00:30:21 +08:00
X3DXmlHelper.h migrated x3d importer to pugixml reader 2021-09-12 11:37:33 +02:00