File: pyassimp_constants.patch

package info (click to toggle)
assimp 6.0.2%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 159,420 kB
  • sloc: cpp: 165,406; cobol: 65,664; ansic: 16,600; xml: 11,246; python: 5,320; java: 2,303; sh: 512; objc: 122; pascal: 100; makefile: 66
file content (34 lines) | stat: -rw-r--r-- 1,499 bytes parent folder | download
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