From faaea5224f0704d85eef57f9e55dfd8df771e768 Mon Sep 17 00:00:00 2001 From: acgessler Date: Sat, 5 Oct 2013 16:18:36 +0200 Subject: [PATCH] Exporter: update documentation. --- include/assimp/Exporter.hpp | 8 +++++++- include/assimp/cexport.h | 6 ++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/include/assimp/Exporter.hpp b/include/assimp/Exporter.hpp index 1a993db48..b9318ae29 100644 --- a/include/assimp/Exporter.hpp +++ b/include/assimp/Exporter.hpp @@ -198,7 +198,13 @@ public: * redundant as exporters would apply them anyhow. A good example * is triangulation - whilst you can enforce it by specifying * the #aiProcess_Triangulate flag, most export formats support only - * triangulate data so they would run the step even if it wasn't requested. + * triangulate data so they would run the step even if it wasn't requested. + * + * If assimp detects that the input scene was directly taken from the importer side of + * the library (i.e. not copied using aiCopyScene and potetially modified afterwards), + * any postprocessing steps already applied to the scene will not be applied again, unless + * they show non-idempotent behaviour (#aiProcess_MakeLeftHanded, #aiProcess_FlipUVs and + * #aiProcess_FlipWindingOrder). * @return AI_SUCCESS if everything was fine. * @note Use aiCopyScene() to get a modifiable copy of a previously * imported scene.*/ diff --git a/include/assimp/cexport.h b/include/assimp/cexport.h index 797d5db1a..5916c2da9 100644 --- a/include/assimp/cexport.h +++ b/include/assimp/cexport.h @@ -143,6 +143,12 @@ ASSIMP_API void aiFreeScene(const C_STRUCT aiScene* pIn); * is triangulation - whilst you can enforce it by specifying * the #aiProcess_Triangulate flag, most export formats support only * triangulate data so they would run the step anyway. +* +* If assimp detects that the input scene was directly taken from the importer side of +* the library (i.e. not copied using aiCopyScene and potetially modified afterwards), +* any postprocessing steps already applied to the scene will not be applied again, unless +* they show non-idempotent behaviour (#aiProcess_MakeLeftHanded, #aiProcess_FlipUVs and +* #aiProcess_FlipWindingOrder). * @return a status code indicating the result of the export * @note Use aiCopyScene() to get a modifiable copy of a previously * imported scene.