1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
Description: Fix constant definition for PyAssimp
Upstream accidentally removed a constant in the py bindings
when adding another one.
Author: IOhannes m zmölnig
Origin: Debian
Forwarded: https://github.com/assimp/assimp/pull/6335
Last-Update: 2025-08-27
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- assimp.orig/port/PyAssimp/pyassimp/postprocess.py
+++ assimp/port/PyAssimp/pyassimp/postprocess.py
@@ -40,9 +40,19 @@
#
# By default the imported mesh data might contain faces with more than 3
# indices. For rendering you'll usually want all faces to be triangles.
-# This post processing stepaiProcess_ForceGenNormals
-## <hr>Removes some parts of the data structure (animations, materials,
-# light sources, cameras, textures, vertex components).
+# This post processing step splits up faces with more than 3 indices into
+# triangles. Line and point primitives are #not# modified! If you want
+# 'triangles only' with no other kinds of primitives, try the following
+# solution:
+# <ul>
+# <li>Specify both #aiProcess_Triangulate and #aiProcess_SortByPType <li>
+# <li>Ignore all point and line meshes when you process assimp's output<li>
+# <ul>
+#
+aiProcess_Triangulate = 0x8
+
+# <hr>Removes some parts of the data structure (animations, materials,
+# light sources, cameras, textures, vertex components).
#
# The components to be removed are specified in a separate
# configuration option, <tt>#AI_CONFIG_PP_RVC_FLAGS<tt>. This is quite useful
|