From dd98d4aea3d9d2b3544540ea44eeb15c3616dbb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?uml=C3=A4ute?= Date: Wed, 17 Sep 2025 10:23:37 +0200 Subject: [PATCH] PyAssimp: Re-add 'aiProcess_Triangulate' (#6335) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit apparently, b9bfac0418c30e969b3052953e63fbced29ccfd4 accidentally removed a couple of lines with a botched copy'n'paste. Co-authored-by: IOhannes m zmölnig Co-authored-by: Kim Kulling --- port/PyAssimp/pyassimp/postprocess.py | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/port/PyAssimp/pyassimp/postprocess.py b/port/PyAssimp/pyassimp/postprocess.py index 3c1ae976e..4bec1e288 100644 --- a/port/PyAssimp/pyassimp/postprocess.py +++ b/port/PyAssimp/pyassimp/postprocess.py @@ -36,13 +36,21 @@ aiProcess_JoinIdenticalVertices = 0x2 # aiProcess_MakeLeftHanded = 0x4 -##
Triangulates all faces of all meshes. +##
Triangulates all faces of all meshes. # # 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 -##
Removes some parts of the data structure (animations, materials, -# light sources, cameras, textures, vertex components). +# indices. For rendering you'll usually want all faces to be triangles. +# 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: +# - Specify both #aiProcess_Triangulate and #aiProcess_SortByPType +# - Ignore all point and line meshes when you process assimp's output +# +aiProcess_Triangulate = 0x8 + +#
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, #AI_CONFIG_PP_RVC_FLAGS. This is quite useful