|
@@ -72,170 +72,173 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
// Importers
|
|
// Importers
|
|
// (include_new_importers_here)
|
|
// (include_new_importers_here)
|
|
// ------------------------------------------------------------------------------------------------
|
|
// ------------------------------------------------------------------------------------------------
|
|
-#ifndef AI_BUILD_NO_X_IMPORTER
|
|
|
|
|
|
+#ifndef ASSIMP_BUILD_NO_X_IMPORTER
|
|
# include "XFileImporter.h"
|
|
# include "XFileImporter.h"
|
|
#endif
|
|
#endif
|
|
-#ifndef AI_BUILD_NO_3DS_IMPORTER
|
|
|
|
|
|
+#ifndef ASSIMP_BUILD_NO_3DS_IMPORTER
|
|
# include "3DSLoader.h"
|
|
# include "3DSLoader.h"
|
|
#endif
|
|
#endif
|
|
-#ifndef AI_BUILD_NO_MD3_IMPORTER
|
|
|
|
|
|
+#ifndef ASSIMP_BUILD_NO_MD3_IMPORTER
|
|
# include "MD3Loader.h"
|
|
# include "MD3Loader.h"
|
|
#endif
|
|
#endif
|
|
-#ifndef AI_BUILD_NO_MDL_IMPORTER
|
|
|
|
|
|
+#ifndef ASSIMP_BUILD_NO_MDL_IMPORTER
|
|
# include "MDLLoader.h"
|
|
# include "MDLLoader.h"
|
|
#endif
|
|
#endif
|
|
-#ifndef AI_BUILD_NO_MD2_IMPORTER
|
|
|
|
|
|
+#ifndef ASSIMP_BUILD_NO_MD2_IMPORTER
|
|
# include "MD2Loader.h"
|
|
# include "MD2Loader.h"
|
|
#endif
|
|
#endif
|
|
-#ifndef AI_BUILD_NO_PLY_IMPORTER
|
|
|
|
|
|
+#ifndef ASSIMP_BUILD_NO_PLY_IMPORTER
|
|
# include "PlyLoader.h"
|
|
# include "PlyLoader.h"
|
|
#endif
|
|
#endif
|
|
-#ifndef AI_BUILD_NO_ASE_IMPORTER
|
|
|
|
|
|
+#ifndef ASSIMP_BUILD_NO_ASE_IMPORTER
|
|
# include "ASELoader.h"
|
|
# include "ASELoader.h"
|
|
#endif
|
|
#endif
|
|
-#ifndef AI_BUILD_NO_OBJ_IMPORTER
|
|
|
|
|
|
+#ifndef ASSIMP_BUILD_NO_OBJ_IMPORTER
|
|
# include "ObjFileImporter.h"
|
|
# include "ObjFileImporter.h"
|
|
#endif
|
|
#endif
|
|
-#ifndef AI_BUILD_NO_HMP_IMPORTER
|
|
|
|
|
|
+#ifndef ASSIMP_BUILD_NO_HMP_IMPORTER
|
|
# include "HMPLoader.h"
|
|
# include "HMPLoader.h"
|
|
#endif
|
|
#endif
|
|
-#ifndef AI_BUILD_NO_SMD_IMPORTER
|
|
|
|
|
|
+#ifndef ASSIMP_BUILD_NO_SMD_IMPORTER
|
|
# include "SMDLoader.h"
|
|
# include "SMDLoader.h"
|
|
#endif
|
|
#endif
|
|
-#ifndef AI_BUILD_NO_MDC_IMPORTER
|
|
|
|
|
|
+#ifndef ASSIMP_BUILD_NO_MDC_IMPORTER
|
|
# include "MDCLoader.h"
|
|
# include "MDCLoader.h"
|
|
#endif
|
|
#endif
|
|
-#ifndef AI_BUILD_NO_MD5_IMPORTER
|
|
|
|
|
|
+#ifndef ASSIMP_BUILD_NO_MD5_IMPORTER
|
|
# include "MD5Loader.h"
|
|
# include "MD5Loader.h"
|
|
#endif
|
|
#endif
|
|
-#ifndef AI_BUILD_NO_STL_IMPORTER
|
|
|
|
|
|
+#ifndef ASSIMP_BUILD_NO_STL_IMPORTER
|
|
# include "STLLoader.h"
|
|
# include "STLLoader.h"
|
|
#endif
|
|
#endif
|
|
-#ifndef AI_BUILD_NO_LWO_IMPORTER
|
|
|
|
|
|
+#ifndef ASSIMP_BUILD_NO_LWO_IMPORTER
|
|
# include "LWOLoader.h"
|
|
# include "LWOLoader.h"
|
|
#endif
|
|
#endif
|
|
-#ifndef AI_BUILD_NO_DXF_IMPORTER
|
|
|
|
|
|
+#ifndef ASSIMP_BUILD_NO_DXF_IMPORTER
|
|
# include "DXFLoader.h"
|
|
# include "DXFLoader.h"
|
|
#endif
|
|
#endif
|
|
-#ifndef AI_BUILD_NO_NFF_IMPORTER
|
|
|
|
|
|
+#ifndef ASSIMP_BUILD_NO_NFF_IMPORTER
|
|
# include "NFFLoader.h"
|
|
# include "NFFLoader.h"
|
|
#endif
|
|
#endif
|
|
-#ifndef AI_BUILD_NO_RAW_IMPORTER
|
|
|
|
|
|
+#ifndef ASSIMP_BUILD_NO_RAW_IMPORTER
|
|
# include "RawLoader.h"
|
|
# include "RawLoader.h"
|
|
#endif
|
|
#endif
|
|
-#ifndef AI_BUILD_NO_OFF_IMPORTER
|
|
|
|
|
|
+#ifndef ASSIMP_BUILD_NO_OFF_IMPORTER
|
|
# include "OFFLoader.h"
|
|
# include "OFFLoader.h"
|
|
#endif
|
|
#endif
|
|
-#ifndef AI_BUILD_NO_AC_IMPORTER
|
|
|
|
|
|
+#ifndef ASSIMP_BUILD_NO_AC_IMPORTER
|
|
# include "ACLoader.h"
|
|
# include "ACLoader.h"
|
|
#endif
|
|
#endif
|
|
-#ifndef AI_BUILD_NO_BVH_IMPORTER
|
|
|
|
|
|
+#ifndef ASSIMP_BUILD_NO_BVH_IMPORTER
|
|
# include "BVHLoader.h"
|
|
# include "BVHLoader.h"
|
|
#endif
|
|
#endif
|
|
-#ifndef AI_BUILD_NO_IRRMESH_IMPORTER
|
|
|
|
|
|
+#ifndef ASSIMP_BUILD_NO_IRRMESH_IMPORTER
|
|
# include "IRRMeshLoader.h"
|
|
# include "IRRMeshLoader.h"
|
|
#endif
|
|
#endif
|
|
-#ifndef AI_BUILD_NO_IRR_IMPORTER
|
|
|
|
|
|
+#ifndef ASSIMP_BUILD_NO_IRR_IMPORTER
|
|
# include "IRRLoader.h"
|
|
# include "IRRLoader.h"
|
|
#endif
|
|
#endif
|
|
-#ifndef AI_BUILD_NO_Q3D_IMPORTER
|
|
|
|
|
|
+#ifndef ASSIMP_BUILD_NO_Q3D_IMPORTER
|
|
# include "Q3DLoader.h"
|
|
# include "Q3DLoader.h"
|
|
#endif
|
|
#endif
|
|
-#ifndef AI_BUILD_NO_B3D_IMPORTER
|
|
|
|
|
|
+#ifndef ASSIMP_BUILD_NO_B3D_IMPORTER
|
|
# include "B3DImporter.h"
|
|
# include "B3DImporter.h"
|
|
#endif
|
|
#endif
|
|
-#ifndef AI_BUILD_NO_COLLADA_IMPORTER
|
|
|
|
|
|
+#ifndef ASSIMP_BUILD_NO_COLLADA_IMPORTER
|
|
# include "ColladaLoader.h"
|
|
# include "ColladaLoader.h"
|
|
#endif
|
|
#endif
|
|
-#ifndef AI_BUILD_NO_TERRAGEN_IMPORTER
|
|
|
|
|
|
+#ifndef ASSIMP_BUILD_NO_TERRAGEN_IMPORTER
|
|
# include "TerragenLoader.h"
|
|
# include "TerragenLoader.h"
|
|
#endif
|
|
#endif
|
|
-#ifndef AI_BUILD_NO_CSM_IMPORTER
|
|
|
|
|
|
+#ifndef ASSIMP_BUILD_NO_CSM_IMPORTER
|
|
# include "CSMLoader.h"
|
|
# include "CSMLoader.h"
|
|
#endif
|
|
#endif
|
|
-#ifndef AI_BUILD_NO_3D_IMPORTER
|
|
|
|
|
|
+#ifndef ASSIMP_BUILD_NO_3D_IMPORTER
|
|
# include "UnrealLoader.h"
|
|
# include "UnrealLoader.h"
|
|
#endif
|
|
#endif
|
|
-#ifndef AI_BUILD_NO_LWS_IMPORTER
|
|
|
|
|
|
+#ifndef ASSIMP_BUILD_NO_LWS_IMPORTER
|
|
# include "LWSLoader.h"
|
|
# include "LWSLoader.h"
|
|
#endif
|
|
#endif
|
|
-#ifndef AI_BUILD_NO_OGRE_IMPORTER
|
|
|
|
|
|
+#ifndef ASSIMP_BUILD_NO_OGRE_IMPORTER
|
|
# include "OgreImporter.h"
|
|
# include "OgreImporter.h"
|
|
#endif
|
|
#endif
|
|
-#ifndef AI_BUILD_NO_MS3D_IMPORTER
|
|
|
|
|
|
+#ifndef ASSIMP_BUILD_NO_MS3D_IMPORTER
|
|
# include "MS3DLoader.h"
|
|
# include "MS3DLoader.h"
|
|
#endif
|
|
#endif
|
|
-#ifndef AI_BUILD_NO_COB_IMPORTER
|
|
|
|
|
|
+#ifndef ASSIMP_BUILD_NO_COB_IMPORTER
|
|
# include "COBLoader.h"
|
|
# include "COBLoader.h"
|
|
#endif
|
|
#endif
|
|
|
|
+#ifndef ASSIMP_BUILD_NO_COB_IMPORTER
|
|
|
|
+# include "BlenderLoader.h"
|
|
|
|
+#endif
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
// ------------------------------------------------------------------------------------------------
|
|
// Post processing-Steps
|
|
// Post processing-Steps
|
|
// ------------------------------------------------------------------------------------------------
|
|
// ------------------------------------------------------------------------------------------------
|
|
-#ifndef AI_BUILD_NO_CALCTANGENTS_PROCESS
|
|
|
|
|
|
+#ifndef ASSIMP_BUILD_NO_CALCTANGENTS_PROCESS
|
|
# include "CalcTangentsProcess.h"
|
|
# include "CalcTangentsProcess.h"
|
|
#endif
|
|
#endif
|
|
-#ifndef AI_BUILD_NO_JOINVERTICES_PROCESS
|
|
|
|
|
|
+#ifndef ASSIMP_BUILD_NO_JOINVERTICES_PROCESS
|
|
# include "JoinVerticesProcess.h"
|
|
# include "JoinVerticesProcess.h"
|
|
#endif
|
|
#endif
|
|
-#if !(defined AI_BUILD_NO_MAKELEFTHANDED_PROCESS && defined AI_BUILD_NO_FLIPUVS_PROCESS && defined AI_BUILD_NO_FLIPWINDINGORDER_PROCESS)
|
|
|
|
|
|
+#if !(defined ASSIMP_BUILD_NO_MAKELEFTHANDED_PROCESS && defined ASSIMP_BUILD_NO_FLIPUVS_PROCESS && defined ASSIMP_BUILD_NO_FLIPWINDINGORDER_PROCESS)
|
|
# include "ConvertToLHProcess.h"
|
|
# include "ConvertToLHProcess.h"
|
|
#endif
|
|
#endif
|
|
-#ifndef AI_BUILD_NO_TRIANGULATE_PROCESS
|
|
|
|
|
|
+#ifndef ASSIMP_BUILD_NO_TRIANGULATE_PROCESS
|
|
# include "TriangulateProcess.h"
|
|
# include "TriangulateProcess.h"
|
|
#endif
|
|
#endif
|
|
-#ifndef AI_BUILD_NO_GENFACENORMALS_PROCESS
|
|
|
|
|
|
+#ifndef ASSIMP_BUILD_NO_GENFACENORMALS_PROCESS
|
|
# include "GenFaceNormalsProcess.h"
|
|
# include "GenFaceNormalsProcess.h"
|
|
#endif
|
|
#endif
|
|
-#ifndef AI_BUILD_NO_GENVERTEXNORMALS_PROCESS
|
|
|
|
|
|
+#ifndef ASSIMP_BUILD_NO_GENVERTEXNORMALS_PROCESS
|
|
# include "GenVertexNormalsProcess.h"
|
|
# include "GenVertexNormalsProcess.h"
|
|
#endif
|
|
#endif
|
|
-#ifndef AI_BUILD_NO_REMOVEVC_PROCESS
|
|
|
|
|
|
+#ifndef ASSIMP_BUILD_NO_REMOVEVC_PROCESS
|
|
# include "RemoveVCProcess.h"
|
|
# include "RemoveVCProcess.h"
|
|
#endif
|
|
#endif
|
|
-#ifndef AI_BUILD_NO_SPLITLARGEMESHES_PROCESS
|
|
|
|
|
|
+#ifndef ASSIMP_BUILD_NO_SPLITLARGEMESHES_PROCESS
|
|
# include "SplitLargeMeshes.h"
|
|
# include "SplitLargeMeshes.h"
|
|
#endif
|
|
#endif
|
|
-#ifndef AI_BUILD_NO_PRETRANSFORMVERTICES_PROCESS
|
|
|
|
|
|
+#ifndef ASSIMP_BUILD_NO_PRETRANSFORMVERTICES_PROCESS
|
|
# include "PretransformVertices.h"
|
|
# include "PretransformVertices.h"
|
|
#endif
|
|
#endif
|
|
-#ifndef AI_BUILD_NO_LIMITBONEWEIGHTS_PROCESS
|
|
|
|
|
|
+#ifndef ASSIMP_BUILD_NO_LIMITBONEWEIGHTS_PROCESS
|
|
# include "LimitBoneWeightsProcess.h"
|
|
# include "LimitBoneWeightsProcess.h"
|
|
#endif
|
|
#endif
|
|
-#ifndef AI_BUILD_NO_VALIDATEDS_PROCESS
|
|
|
|
|
|
+#ifndef ASSIMP_BUILD_NO_VALIDATEDS_PROCESS
|
|
# include "ValidateDataStructure.h"
|
|
# include "ValidateDataStructure.h"
|
|
#endif
|
|
#endif
|
|
-#ifndef AI_BUILD_NO_IMPROVECACHELOCALITY_PROCESS
|
|
|
|
|
|
+#ifndef ASSIMP_BUILD_NO_IMPROVECACHELOCALITY_PROCESS
|
|
# include "ImproveCacheLocality.h"
|
|
# include "ImproveCacheLocality.h"
|
|
#endif
|
|
#endif
|
|
-#ifndef AI_BUILD_NO_FIXINFACINGNORMALS_PROCESS
|
|
|
|
|
|
+#ifndef ASSIMP_BUILD_NO_FIXINFACINGNORMALS_PROCESS
|
|
# include "FixNormalsStep.h"
|
|
# include "FixNormalsStep.h"
|
|
#endif
|
|
#endif
|
|
-#ifndef AI_BUILD_NO_REMOVE_REDUNDANTMATERIALS_PROCESS
|
|
|
|
|
|
+#ifndef ASSIMP_BUILD_NO_REMOVE_REDUNDANTMATERIALS_PROCESS
|
|
# include "RemoveRedundantMaterials.h"
|
|
# include "RemoveRedundantMaterials.h"
|
|
#endif
|
|
#endif
|
|
-#ifndef AI_BUILD_NO_FINDINVALIDDATA_PROCESS
|
|
|
|
|
|
+#ifndef ASSIMP_BUILD_NO_FINDINVALIDDATA_PROCESS
|
|
# include "FindInvalidDataProcess.h"
|
|
# include "FindInvalidDataProcess.h"
|
|
#endif
|
|
#endif
|
|
-#ifndef AI_BUILD_NO_FINDDEGENERATES_PROCESS
|
|
|
|
|
|
+#ifndef ASSIMP_BUILD_NO_FINDDEGENERATES_PROCESS
|
|
# include "FindDegenerates.h"
|
|
# include "FindDegenerates.h"
|
|
#endif
|
|
#endif
|
|
-#ifndef AI_BUILD_NO_SORTBYPTYPE_PROCESS
|
|
|
|
|
|
+#ifndef ASSIMP_BUILD_NO_SORTBYPTYPE_PROCESS
|
|
# include "SortByPTypeProcess.h"
|
|
# include "SortByPTypeProcess.h"
|
|
#endif
|
|
#endif
|
|
-#ifndef AI_BUILD_NO_GENUVCOORDS_PROCESS
|
|
|
|
|
|
+#ifndef ASSIMP_BUILD_NO_GENUVCOORDS_PROCESS
|
|
# include "ComputeUVMappingProcess.h"
|
|
# include "ComputeUVMappingProcess.h"
|
|
#endif
|
|
#endif
|
|
-#ifndef AI_BUILD_NO_TRANSFORMTEXCOORDS_PROCESS
|
|
|
|
|
|
+#ifndef ASSIMP_BUILD_NO_TRANSFORMTEXCOORDS_PROCESS
|
|
# include "TextureTransform.h"
|
|
# include "TextureTransform.h"
|
|
#endif
|
|
#endif
|
|
-#ifndef AI_BUILD_NO_FINDINSTANCES_PROCESS
|
|
|
|
|
|
+#ifndef ASSIMP_BUILD_NO_FINDINSTANCES_PROCESS
|
|
# include "FindInstancesProcess.h"
|
|
# include "FindInstancesProcess.h"
|
|
#endif
|
|
#endif
|
|
-#ifndef AI_BUILD_NO_OPTIMIZEMESHES_PROCESS
|
|
|
|
|
|
+#ifndef ASSIMP_BUILD_NO_OPTIMIZEMESHES_PROCESS
|
|
# include "OptimizeMeshes.h"
|
|
# include "OptimizeMeshes.h"
|
|
#endif
|
|
#endif
|
|
-#ifndef AI_BUILD_NO_OPTIMIZEGRAPH_PROCESS
|
|
|
|
|
|
+#ifndef ASSIMP_BUILD_NO_OPTIMIZEGRAPH_PROCESS
|
|
# include "OptimizeGraph.h"
|
|
# include "OptimizeGraph.h"
|
|
#endif
|
|
#endif
|
|
|
|
|
|
@@ -302,102 +305,105 @@ Importer::Importer()
|
|
// (register_new_importers_here)
|
|
// (register_new_importers_here)
|
|
// ----------------------------------------------------------------------------
|
|
// ----------------------------------------------------------------------------
|
|
pimpl->mImporter.reserve(64);
|
|
pimpl->mImporter.reserve(64);
|
|
-#if (!defined AI_BUILD_NO_X_IMPORTER)
|
|
|
|
|
|
+#if (!defined ASSIMP_BUILD_NO_X_IMPORTER)
|
|
pimpl->mImporter.push_back( new XFileImporter());
|
|
pimpl->mImporter.push_back( new XFileImporter());
|
|
#endif
|
|
#endif
|
|
-#if (!defined AI_BUILD_NO_OBJ_IMPORTER)
|
|
|
|
|
|
+#if (!defined ASSIMP_BUILD_NO_OBJ_IMPORTER)
|
|
pimpl->mImporter.push_back( new ObjFileImporter());
|
|
pimpl->mImporter.push_back( new ObjFileImporter());
|
|
#endif
|
|
#endif
|
|
-#if (!defined AI_BUILD_NO_3DS_IMPORTER)
|
|
|
|
|
|
+#if (!defined ASSIMP_BUILD_NO_3DS_IMPORTER)
|
|
pimpl->mImporter.push_back( new Discreet3DSImporter());
|
|
pimpl->mImporter.push_back( new Discreet3DSImporter());
|
|
#endif
|
|
#endif
|
|
-#if (!defined AI_BUILD_NO_MD3_IMPORTER)
|
|
|
|
|
|
+#if (!defined ASSIMP_BUILD_NO_MD3_IMPORTER)
|
|
pimpl->mImporter.push_back( new MD3Importer());
|
|
pimpl->mImporter.push_back( new MD3Importer());
|
|
#endif
|
|
#endif
|
|
-#if (!defined AI_BUILD_NO_MD2_IMPORTER)
|
|
|
|
|
|
+#if (!defined ASSIMP_BUILD_NO_MD2_IMPORTER)
|
|
pimpl->mImporter.push_back( new MD2Importer());
|
|
pimpl->mImporter.push_back( new MD2Importer());
|
|
#endif
|
|
#endif
|
|
-#if (!defined AI_BUILD_NO_PLY_IMPORTER)
|
|
|
|
|
|
+#if (!defined ASSIMP_BUILD_NO_PLY_IMPORTER)
|
|
pimpl->mImporter.push_back( new PLYImporter());
|
|
pimpl->mImporter.push_back( new PLYImporter());
|
|
#endif
|
|
#endif
|
|
-#if (!defined AI_BUILD_NO_MDL_IMPORTER)
|
|
|
|
|
|
+#if (!defined ASSIMP_BUILD_NO_MDL_IMPORTER)
|
|
pimpl->mImporter.push_back( new MDLImporter());
|
|
pimpl->mImporter.push_back( new MDLImporter());
|
|
#endif
|
|
#endif
|
|
-#if (!defined AI_BUILD_NO_ASE_IMPORTER)
|
|
|
|
|
|
+#if (!defined ASSIMP_BUILD_NO_ASE_IMPORTER)
|
|
pimpl->mImporter.push_back( new ASEImporter());
|
|
pimpl->mImporter.push_back( new ASEImporter());
|
|
#endif
|
|
#endif
|
|
-#if (!defined AI_BUILD_NO_HMP_IMPORTER)
|
|
|
|
|
|
+#if (!defined ASSIMP_BUILD_NO_HMP_IMPORTER)
|
|
pimpl->mImporter.push_back( new HMPImporter());
|
|
pimpl->mImporter.push_back( new HMPImporter());
|
|
#endif
|
|
#endif
|
|
-#if (!defined AI_BUILD_NO_SMD_IMPORTER)
|
|
|
|
|
|
+#if (!defined ASSIMP_BUILD_NO_SMD_IMPORTER)
|
|
pimpl->mImporter.push_back( new SMDImporter());
|
|
pimpl->mImporter.push_back( new SMDImporter());
|
|
#endif
|
|
#endif
|
|
-#if (!defined AI_BUILD_NO_MDC_IMPORTER)
|
|
|
|
|
|
+#if (!defined ASSIMP_BUILD_NO_MDC_IMPORTER)
|
|
pimpl->mImporter.push_back( new MDCImporter());
|
|
pimpl->mImporter.push_back( new MDCImporter());
|
|
#endif
|
|
#endif
|
|
-#if (!defined AI_BUILD_NO_MD5_IMPORTER)
|
|
|
|
|
|
+#if (!defined ASSIMP_BUILD_NO_MD5_IMPORTER)
|
|
pimpl->mImporter.push_back( new MD5Importer());
|
|
pimpl->mImporter.push_back( new MD5Importer());
|
|
#endif
|
|
#endif
|
|
-#if (!defined AI_BUILD_NO_STL_IMPORTER)
|
|
|
|
|
|
+#if (!defined ASSIMP_BUILD_NO_STL_IMPORTER)
|
|
pimpl->mImporter.push_back( new STLImporter());
|
|
pimpl->mImporter.push_back( new STLImporter());
|
|
#endif
|
|
#endif
|
|
-#if (!defined AI_BUILD_NO_LWO_IMPORTER)
|
|
|
|
|
|
+#if (!defined ASSIMP_BUILD_NO_LWO_IMPORTER)
|
|
pimpl->mImporter.push_back( new LWOImporter());
|
|
pimpl->mImporter.push_back( new LWOImporter());
|
|
#endif
|
|
#endif
|
|
-#if (!defined AI_BUILD_NO_DXF_IMPORTER)
|
|
|
|
|
|
+#if (!defined ASSIMP_BUILD_NO_DXF_IMPORTER)
|
|
pimpl->mImporter.push_back( new DXFImporter());
|
|
pimpl->mImporter.push_back( new DXFImporter());
|
|
#endif
|
|
#endif
|
|
-#if (!defined AI_BUILD_NO_NFF_IMPORTER)
|
|
|
|
|
|
+#if (!defined ASSIMP_BUILD_NO_NFF_IMPORTER)
|
|
pimpl->mImporter.push_back( new NFFImporter());
|
|
pimpl->mImporter.push_back( new NFFImporter());
|
|
#endif
|
|
#endif
|
|
-#if (!defined AI_BUILD_NO_RAW_IMPORTER)
|
|
|
|
|
|
+#if (!defined ASSIMP_BUILD_NO_RAW_IMPORTER)
|
|
pimpl->mImporter.push_back( new RAWImporter());
|
|
pimpl->mImporter.push_back( new RAWImporter());
|
|
#endif
|
|
#endif
|
|
-#if (!defined AI_BUILD_NO_OFF_IMPORTER)
|
|
|
|
|
|
+#if (!defined ASSIMP_BUILD_NO_OFF_IMPORTER)
|
|
pimpl->mImporter.push_back( new OFFImporter());
|
|
pimpl->mImporter.push_back( new OFFImporter());
|
|
#endif
|
|
#endif
|
|
-#if (!defined AI_BUILD_NO_AC_IMPORTER)
|
|
|
|
|
|
+#if (!defined ASSIMP_BUILD_NO_AC_IMPORTER)
|
|
pimpl->mImporter.push_back( new AC3DImporter());
|
|
pimpl->mImporter.push_back( new AC3DImporter());
|
|
#endif
|
|
#endif
|
|
-#if (!defined AI_BUILD_NO_BVH_IMPORTER)
|
|
|
|
|
|
+#if (!defined ASSIMP_BUILD_NO_BVH_IMPORTER)
|
|
pimpl->mImporter.push_back( new BVHLoader());
|
|
pimpl->mImporter.push_back( new BVHLoader());
|
|
#endif
|
|
#endif
|
|
-#if (!defined AI_BUILD_NO_IRRMESH_IMPORTER)
|
|
|
|
|
|
+#if (!defined ASSIMP_BUILD_NO_IRRMESH_IMPORTER)
|
|
pimpl->mImporter.push_back( new IRRMeshImporter());
|
|
pimpl->mImporter.push_back( new IRRMeshImporter());
|
|
#endif
|
|
#endif
|
|
-#if (!defined AI_BUILD_NO_IRR_IMPORTER)
|
|
|
|
|
|
+#if (!defined ASSIMP_BUILD_NO_IRR_IMPORTER)
|
|
pimpl->mImporter.push_back( new IRRImporter());
|
|
pimpl->mImporter.push_back( new IRRImporter());
|
|
#endif
|
|
#endif
|
|
-#if (!defined AI_BUILD_NO_Q3D_IMPORTER)
|
|
|
|
|
|
+#if (!defined ASSIMP_BUILD_NO_Q3D_IMPORTER)
|
|
pimpl->mImporter.push_back( new Q3DImporter());
|
|
pimpl->mImporter.push_back( new Q3DImporter());
|
|
#endif
|
|
#endif
|
|
-#if (!defined AI_BUILD_NO_B3D_IMPORTER)
|
|
|
|
|
|
+#if (!defined ASSIMP_BUILD_NO_B3D_IMPORTER)
|
|
pimpl->mImporter.push_back( new B3DImporter());
|
|
pimpl->mImporter.push_back( new B3DImporter());
|
|
#endif
|
|
#endif
|
|
-#if (!defined AI_BUILD_NO_COLLADA_IMPORTER)
|
|
|
|
|
|
+#if (!defined ASSIMP_BUILD_NO_COLLADA_IMPORTER)
|
|
pimpl->mImporter.push_back( new ColladaLoader());
|
|
pimpl->mImporter.push_back( new ColladaLoader());
|
|
#endif
|
|
#endif
|
|
-#if (!defined AI_BUILD_NO_TERRAGEN_IMPORTER)
|
|
|
|
|
|
+#if (!defined ASSIMP_BUILD_NO_TERRAGEN_IMPORTER)
|
|
pimpl->mImporter.push_back( new TerragenImporter());
|
|
pimpl->mImporter.push_back( new TerragenImporter());
|
|
#endif
|
|
#endif
|
|
-#if (!defined AI_BUILD_NO_CSM_IMPORTER)
|
|
|
|
|
|
+#if (!defined ASSIMP_BUILD_NO_CSM_IMPORTER)
|
|
pimpl->mImporter.push_back( new CSMImporter());
|
|
pimpl->mImporter.push_back( new CSMImporter());
|
|
#endif
|
|
#endif
|
|
-#if (!defined AI_BUILD_NO_3D_IMPORTER)
|
|
|
|
|
|
+#if (!defined ASSIMP_BUILD_NO_3D_IMPORTER)
|
|
pimpl->mImporter.push_back( new UnrealImporter());
|
|
pimpl->mImporter.push_back( new UnrealImporter());
|
|
#endif
|
|
#endif
|
|
-#if (!defined AI_BUILD_NO_LWS_IMPORTER)
|
|
|
|
|
|
+#if (!defined ASSIMP_BUILD_NO_LWS_IMPORTER)
|
|
pimpl->mImporter.push_back( new LWSImporter());
|
|
pimpl->mImporter.push_back( new LWSImporter());
|
|
#endif
|
|
#endif
|
|
-#if (!defined AI_BUILD_NO_OGRE_IMPORTER)
|
|
|
|
|
|
+#if (!defined ASSIMP_BUILD_NO_OGRE_IMPORTER)
|
|
pimpl->mImporter.push_back( new Ogre::OgreImporter());
|
|
pimpl->mImporter.push_back( new Ogre::OgreImporter());
|
|
#endif
|
|
#endif
|
|
-#if (!defined AI_BUILD_NO_MS3D_IMPORTER)
|
|
|
|
|
|
+#if (!defined ASSIMP_BUILD_NO_MS3D_IMPORTER)
|
|
pimpl->mImporter.push_back( new MS3DImporter());
|
|
pimpl->mImporter.push_back( new MS3DImporter());
|
|
#endif
|
|
#endif
|
|
-#if (!defined AI_BUILD_NO_COB_IMPORTER)
|
|
|
|
|
|
+#if (!defined ASSIMP_BUILD_NO_COB_IMPORTER)
|
|
pimpl->mImporter.push_back( new COBImporter());
|
|
pimpl->mImporter.push_back( new COBImporter());
|
|
#endif
|
|
#endif
|
|
|
|
+#if (!defined ASSIMP_BUILD_NO_BLEND_IMPORTER)
|
|
|
|
+ pimpl->mImporter.push_back( new BlenderImporter());
|
|
|
|
+#endif
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
// ----------------------------------------------------------------------------
|
|
// Add an instance of each post processing step here in the order
|
|
// Add an instance of each post processing step here in the order
|
|
@@ -405,49 +411,49 @@ Importer::Importer()
|
|
// validated - as RegisterPPStep() does - all dependencies must be given.
|
|
// validated - as RegisterPPStep() does - all dependencies must be given.
|
|
// ----------------------------------------------------------------------------
|
|
// ----------------------------------------------------------------------------
|
|
pimpl->mPostProcessingSteps.reserve(25);
|
|
pimpl->mPostProcessingSteps.reserve(25);
|
|
-#if (!defined AI_BUILD_NO_REMOVEVC_PROCESS)
|
|
|
|
|
|
+#if (!defined ASSIMP_BUILD_NO_REMOVEVC_PROCESS)
|
|
pimpl->mPostProcessingSteps.push_back( new RemoveVCProcess());
|
|
pimpl->mPostProcessingSteps.push_back( new RemoveVCProcess());
|
|
#endif
|
|
#endif
|
|
-#if (!defined AI_BUILD_NO_REMOVE_REDUNDANTMATERIALS_PROCESS)
|
|
|
|
|
|
+#if (!defined ASSIMP_BUILD_NO_REMOVE_REDUNDANTMATERIALS_PROCESS)
|
|
pimpl->mPostProcessingSteps.push_back( new RemoveRedundantMatsProcess());
|
|
pimpl->mPostProcessingSteps.push_back( new RemoveRedundantMatsProcess());
|
|
#endif
|
|
#endif
|
|
-#if (!defined AI_BUILD_NO_FINDINSTANCES_PROCESS)
|
|
|
|
|
|
+#if (!defined ASSIMP_BUILD_NO_FINDINSTANCES_PROCESS)
|
|
pimpl->mPostProcessingSteps.push_back( new FindInstancesProcess());
|
|
pimpl->mPostProcessingSteps.push_back( new FindInstancesProcess());
|
|
#endif
|
|
#endif
|
|
-#if (!defined AI_BUILD_NO_OPTIMIZEGRAPH_PROCESS)
|
|
|
|
|
|
+#if (!defined ASSIMP_BUILD_NO_OPTIMIZEGRAPH_PROCESS)
|
|
pimpl->mPostProcessingSteps.push_back( new OptimizeGraphProcess());
|
|
pimpl->mPostProcessingSteps.push_back( new OptimizeGraphProcess());
|
|
#endif
|
|
#endif
|
|
-#if (!defined AI_BUILD_NO_OPTIMIZEMESHES_PROCESS)
|
|
|
|
|
|
+#if (!defined ASSIMP_BUILD_NO_OPTIMIZEMESHES_PROCESS)
|
|
pimpl->mPostProcessingSteps.push_back( new OptimizeMeshesProcess());
|
|
pimpl->mPostProcessingSteps.push_back( new OptimizeMeshesProcess());
|
|
#endif
|
|
#endif
|
|
-#if (!defined AI_BUILD_NO_FINDDEGENERATES_PROCESS)
|
|
|
|
|
|
+#if (!defined ASSIMP_BUILD_NO_FINDDEGENERATES_PROCESS)
|
|
pimpl->mPostProcessingSteps.push_back( new FindDegeneratesProcess());
|
|
pimpl->mPostProcessingSteps.push_back( new FindDegeneratesProcess());
|
|
#endif
|
|
#endif
|
|
-#ifndef AI_BUILD_NO_GENUVCOORDS_PROCESS
|
|
|
|
|
|
+#ifndef ASSIMP_BUILD_NO_GENUVCOORDS_PROCESS
|
|
pimpl->mPostProcessingSteps.push_back( new ComputeUVMappingProcess());
|
|
pimpl->mPostProcessingSteps.push_back( new ComputeUVMappingProcess());
|
|
#endif
|
|
#endif
|
|
-#ifndef AI_BUILD_NO_TRANSFORMTEXCOORDS_PROCESS
|
|
|
|
|
|
+#ifndef ASSIMP_BUILD_NO_TRANSFORMTEXCOORDS_PROCESS
|
|
pimpl->mPostProcessingSteps.push_back( new TextureTransformStep());
|
|
pimpl->mPostProcessingSteps.push_back( new TextureTransformStep());
|
|
#endif
|
|
#endif
|
|
-#if (!defined AI_BUILD_NO_PRETRANSFORMVERTICES_PROCESS)
|
|
|
|
|
|
+#if (!defined ASSIMP_BUILD_NO_PRETRANSFORMVERTICES_PROCESS)
|
|
pimpl->mPostProcessingSteps.push_back( new PretransformVertices());
|
|
pimpl->mPostProcessingSteps.push_back( new PretransformVertices());
|
|
#endif
|
|
#endif
|
|
-#if (!defined AI_BUILD_NO_TRIANGULATE_PROCESS)
|
|
|
|
|
|
+#if (!defined ASSIMP_BUILD_NO_TRIANGULATE_PROCESS)
|
|
pimpl->mPostProcessingSteps.push_back( new TriangulateProcess());
|
|
pimpl->mPostProcessingSteps.push_back( new TriangulateProcess());
|
|
#endif
|
|
#endif
|
|
-#if (!defined AI_BUILD_NO_SORTBYPTYPE_PROCESS)
|
|
|
|
|
|
+#if (!defined ASSIMP_BUILD_NO_SORTBYPTYPE_PROCESS)
|
|
pimpl->mPostProcessingSteps.push_back( new SortByPTypeProcess());
|
|
pimpl->mPostProcessingSteps.push_back( new SortByPTypeProcess());
|
|
#endif
|
|
#endif
|
|
-#if (!defined AI_BUILD_NO_FINDINVALIDDATA_PROCESS)
|
|
|
|
|
|
+#if (!defined ASSIMP_BUILD_NO_FINDINVALIDDATA_PROCESS)
|
|
pimpl->mPostProcessingSteps.push_back( new FindInvalidDataProcess());
|
|
pimpl->mPostProcessingSteps.push_back( new FindInvalidDataProcess());
|
|
#endif
|
|
#endif
|
|
-#if (!defined AI_BUILD_NO_FIXINFACINGNORMALS_PROCESS)
|
|
|
|
|
|
+#if (!defined ASSIMP_BUILD_NO_FIXINFACINGNORMALS_PROCESS)
|
|
pimpl->mPostProcessingSteps.push_back( new FixInfacingNormalsProcess());
|
|
pimpl->mPostProcessingSteps.push_back( new FixInfacingNormalsProcess());
|
|
#endif
|
|
#endif
|
|
-#if (!defined AI_BUILD_NO_SPLITLARGEMESHES_PROCESS)
|
|
|
|
|
|
+#if (!defined ASSIMP_BUILD_NO_SPLITLARGEMESHES_PROCESS)
|
|
pimpl->mPostProcessingSteps.push_back( new SplitLargeMeshesProcess_Triangle());
|
|
pimpl->mPostProcessingSteps.push_back( new SplitLargeMeshesProcess_Triangle());
|
|
#endif
|
|
#endif
|
|
-#if (!defined AI_BUILD_NO_GENFACENORMALS_PROCESS)
|
|
|
|
|
|
+#if (!defined ASSIMP_BUILD_NO_GENFACENORMALS_PROCESS)
|
|
pimpl->mPostProcessingSteps.push_back( new GenFaceNormalsProcess());
|
|
pimpl->mPostProcessingSteps.push_back( new GenFaceNormalsProcess());
|
|
#endif
|
|
#endif
|
|
|
|
|
|
@@ -456,13 +462,13 @@ Importer::Importer()
|
|
pimpl->mPostProcessingSteps.push_back( new ComputeSpatialSortProcess());
|
|
pimpl->mPostProcessingSteps.push_back( new ComputeSpatialSortProcess());
|
|
// .........................................................................
|
|
// .........................................................................
|
|
|
|
|
|
-#if (!defined AI_BUILD_NO_GENVERTEXNORMALS_PROCESS)
|
|
|
|
|
|
+#if (!defined ASSIMP_BUILD_NO_GENVERTEXNORMALS_PROCESS)
|
|
pimpl->mPostProcessingSteps.push_back( new GenVertexNormalsProcess());
|
|
pimpl->mPostProcessingSteps.push_back( new GenVertexNormalsProcess());
|
|
#endif
|
|
#endif
|
|
-#if (!defined AI_BUILD_NO_CALCTANGENTS_PROCESS)
|
|
|
|
|
|
+#if (!defined ASSIMP_BUILD_NO_CALCTANGENTS_PROCESS)
|
|
pimpl->mPostProcessingSteps.push_back( new CalcTangentsProcess());
|
|
pimpl->mPostProcessingSteps.push_back( new CalcTangentsProcess());
|
|
#endif
|
|
#endif
|
|
-#if (!defined AI_BUILD_NO_JOINVERTICES_PROCESS)
|
|
|
|
|
|
+#if (!defined ASSIMP_BUILD_NO_JOINVERTICES_PROCESS)
|
|
pimpl->mPostProcessingSteps.push_back( new JoinVerticesProcess());
|
|
pimpl->mPostProcessingSteps.push_back( new JoinVerticesProcess());
|
|
#endif
|
|
#endif
|
|
|
|
|
|
@@ -470,22 +476,22 @@ Importer::Importer()
|
|
pimpl->mPostProcessingSteps.push_back( new DestroySpatialSortProcess());
|
|
pimpl->mPostProcessingSteps.push_back( new DestroySpatialSortProcess());
|
|
// .........................................................................
|
|
// .........................................................................
|
|
|
|
|
|
-#if (!defined AI_BUILD_NO_SPLITLARGEMESHES_PROCESS)
|
|
|
|
|
|
+#if (!defined ASSIMP_BUILD_NO_SPLITLARGEMESHES_PROCESS)
|
|
pimpl->mPostProcessingSteps.push_back( new SplitLargeMeshesProcess_Vertex());
|
|
pimpl->mPostProcessingSteps.push_back( new SplitLargeMeshesProcess_Vertex());
|
|
#endif
|
|
#endif
|
|
-#if (!defined AI_BUILD_NO_MAKELEFTHANDED_PROCESS)
|
|
|
|
|
|
+#if (!defined ASSIMP_BUILD_NO_MAKELEFTHANDED_PROCESS)
|
|
pimpl->mPostProcessingSteps.push_back( new MakeLeftHandedProcess());
|
|
pimpl->mPostProcessingSteps.push_back( new MakeLeftHandedProcess());
|
|
#endif
|
|
#endif
|
|
-#if (!defined AI_BUILD_NO_FLIPUVS_PROCESS)
|
|
|
|
|
|
+#if (!defined ASSIMP_BUILD_NO_FLIPUVS_PROCESS)
|
|
pimpl->mPostProcessingSteps.push_back( new FlipUVsProcess());
|
|
pimpl->mPostProcessingSteps.push_back( new FlipUVsProcess());
|
|
#endif
|
|
#endif
|
|
-#if (!defined AI_BUILD_NO_FLIPWINDINGORDER_PROCESS)
|
|
|
|
|
|
+#if (!defined ASSIMP_BUILD_NO_FLIPWINDINGORDER_PROCESS)
|
|
pimpl->mPostProcessingSteps.push_back( new FlipWindingOrderProcess());
|
|
pimpl->mPostProcessingSteps.push_back( new FlipWindingOrderProcess());
|
|
#endif
|
|
#endif
|
|
-#if (!defined AI_BUILD_NO_LIMITBONEWEIGHTS_PROCESS)
|
|
|
|
|
|
+#if (!defined ASSIMP_BUILD_NO_LIMITBONEWEIGHTS_PROCESS)
|
|
pimpl->mPostProcessingSteps.push_back( new LimitBoneWeightsProcess());
|
|
pimpl->mPostProcessingSteps.push_back( new LimitBoneWeightsProcess());
|
|
#endif
|
|
#endif
|
|
-#if (!defined AI_BUILD_NO_IMPROVECACHELOCALITY_PROCESS)
|
|
|
|
|
|
+#if (!defined ASSIMP_BUILD_NO_IMPROVECACHELOCALITY_PROCESS)
|
|
pimpl->mPostProcessingSteps.push_back( new ImproveCacheLocalityProcess());
|
|
pimpl->mPostProcessingSteps.push_back( new ImproveCacheLocalityProcess());
|
|
#endif
|
|
#endif
|
|
|
|
|
|
@@ -739,7 +745,7 @@ bool Importer::ValidateFlags(unsigned int pFlags)
|
|
}
|
|
}
|
|
|
|
|
|
// ValidateDS does not anymore occur in the pp list, it plays an awesome extra role ...
|
|
// ValidateDS does not anymore occur in the pp list, it plays an awesome extra role ...
|
|
-#ifdef AI_BUILD_NO_VALIDATEDS_PROCESS
|
|
|
|
|
|
+#ifdef ASSIMP_BUILD_NO_VALIDATEDS_PROCESS
|
|
if (pFlags & aiProcess_ValidateDataStructure)
|
|
if (pFlags & aiProcess_ValidateDataStructure)
|
|
return false;
|
|
return false;
|
|
#endif
|
|
#endif
|
|
@@ -873,7 +879,7 @@ const aiScene* Importer::ReadFile( const char* _pFile, unsigned int pFlags)
|
|
// If successful, apply all active post processing steps to the imported data
|
|
// If successful, apply all active post processing steps to the imported data
|
|
if( pimpl->mScene) {
|
|
if( pimpl->mScene) {
|
|
|
|
|
|
-#ifndef AI_BUILD_NO_VALIDATEDS_PROCESS
|
|
|
|
|
|
+#ifndef ASSIMP_BUILD_NO_VALIDATEDS_PROCESS
|
|
// The ValidateDS process is an exception. It is executed first, even before ScenePreprocessor is called.
|
|
// The ValidateDS process is an exception. It is executed first, even before ScenePreprocessor is called.
|
|
if (pFlags & aiProcess_ValidateDataStructure)
|
|
if (pFlags & aiProcess_ValidateDataStructure)
|
|
{
|
|
{
|
|
@@ -939,7 +945,7 @@ const aiScene* Importer::ApplyPostProcessing(unsigned int pFlags)
|
|
ai_assert(_ValidateFlags(pFlags));
|
|
ai_assert(_ValidateFlags(pFlags));
|
|
DefaultLogger::get()->info("Entering post processing pipeline");
|
|
DefaultLogger::get()->info("Entering post processing pipeline");
|
|
|
|
|
|
-#ifndef AI_BUILD_NO_VALIDATEDS_PROCESS
|
|
|
|
|
|
+#ifndef ASSIMP_BUILD_NO_VALIDATEDS_PROCESS
|
|
// The ValidateDS process plays an exceptional role. It isn't contained in the global
|
|
// The ValidateDS process plays an exceptional role. It isn't contained in the global
|
|
// list of post-processing steps, so we need to call it manually.
|
|
// list of post-processing steps, so we need to call it manually.
|
|
if (pFlags & aiProcess_ValidateDataStructure)
|
|
if (pFlags & aiProcess_ValidateDataStructure)
|
|
@@ -954,7 +960,7 @@ const aiScene* Importer::ApplyPostProcessing(unsigned int pFlags)
|
|
#ifdef _DEBUG
|
|
#ifdef _DEBUG
|
|
if (pimpl->bExtraVerbose)
|
|
if (pimpl->bExtraVerbose)
|
|
{
|
|
{
|
|
-#ifndef AI_BUILD_NO_VALIDATEDS_PROCESS
|
|
|
|
|
|
+#ifndef ASSIMP_BUILD_NO_VALIDATEDS_PROCESS
|
|
DefaultLogger::get()->error("Verbose Import is not available due to build settings");
|
|
DefaultLogger::get()->error("Verbose Import is not available due to build settings");
|
|
#endif // no validation
|
|
#endif // no validation
|
|
pFlags |= aiProcess_ValidateDataStructure;
|
|
pFlags |= aiProcess_ValidateDataStructure;
|
|
@@ -976,7 +982,7 @@ const aiScene* Importer::ApplyPostProcessing(unsigned int pFlags)
|
|
}
|
|
}
|
|
#ifdef _DEBUG
|
|
#ifdef _DEBUG
|
|
|
|
|
|
-#ifndef AI_BUILD_NO_VALIDATEDS_PROCESS
|
|
|
|
|
|
+#ifndef ASSIMP_BUILD_NO_VALIDATEDS_PROCESS
|
|
continue;
|
|
continue;
|
|
#endif // no validation
|
|
#endif // no validation
|
|
|
|
|