2
0

config.h.in 46 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120
  1. /*
  2. ---------------------------------------------------------------------------
  3. Open Asset Import Library (assimp)
  4. ---------------------------------------------------------------------------
  5. Copyright (c) 2006-2020, assimp team
  6. All rights reserved.
  7. Redistribution and use of this software in source and binary forms,
  8. with or without modification, are permitted provided that the following
  9. conditions are met:
  10. * Redistributions of source code must retain the above
  11. copyright notice, this list of conditions and the
  12. following disclaimer.
  13. * Redistributions in binary form must reproduce the above
  14. copyright notice, this list of conditions and the
  15. following disclaimer in the documentation and/or other
  16. materials provided with the distribution.
  17. * Neither the name of the assimp team, nor the names of its
  18. contributors may be used to endorse or promote products
  19. derived from this software without specific prior
  20. written permission of the assimp team.
  21. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  22. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  23. LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  24. A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  25. OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  26. SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  27. LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  28. DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  29. THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  30. (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  31. OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  32. ---------------------------------------------------------------------------
  33. */
  34. /** @file config.h
  35. * @brief Defines constants for configurable properties for the library
  36. *
  37. * Typically these properties are set via
  38. * #Assimp::Importer::SetPropertyFloat,
  39. * #Assimp::Importer::SetPropertyInteger or
  40. * #Assimp::Importer::SetPropertyString,
  41. * depending on the data type of a property. All properties have a
  42. * default value. See the doc for the mentioned methods for more details.
  43. *
  44. * <br><br>
  45. * The corresponding functions for use with the plain-c API are:
  46. * #aiSetImportPropertyInteger,
  47. * #aiSetImportPropertyFloat,
  48. * #aiSetImportPropertyString
  49. */
  50. #pragma once
  51. #ifndef AI_CONFIG_H_INC
  52. #define AI_CONFIG_H_INC
  53. // ###########################################################################
  54. // LIBRARY SETTINGS
  55. // General, global settings
  56. // ###########################################################################
  57. // ---------------------------------------------------------------------------
  58. /** @brief Enables time measurements.
  59. *
  60. * If enabled, measures the time needed for each part of the loading
  61. * process (i.e. IO time, importing, postprocessing, ..) and dumps
  62. * these timings to the DefaultLogger. See the @link perf Performance
  63. * Page@endlink for more information on this topic.
  64. *
  65. * Property type: bool. Default value: false.
  66. */
  67. #define AI_CONFIG_GLOB_MEASURE_TIME \
  68. "GLOB_MEASURE_TIME"
  69. // ---------------------------------------------------------------------------
  70. /** @brief Global setting to disable generation of skeleton dummy meshes
  71. *
  72. * Skeleton dummy meshes are generated as a visualization aid in cases which
  73. * the input data contains no geometry, but only animation data.
  74. * Property data type: bool. Default value: false
  75. */
  76. // ---------------------------------------------------------------------------
  77. #define AI_CONFIG_IMPORT_NO_SKELETON_MESHES \
  78. "IMPORT_NO_SKELETON_MESHES"
  79. # if 0 // not implemented yet
  80. // ---------------------------------------------------------------------------
  81. /** @brief Set Assimp's multithreading policy.
  82. *
  83. * This setting is ignored if Assimp was built without boost.thread
  84. * support (ASSIMP_BUILD_NO_THREADING, which is implied by ASSIMP_BUILD_BOOST_WORKAROUND).
  85. * Possible values are: -1 to let Assimp decide what to do, 0 to disable
  86. * multithreading entirely and any number larger than 0 to force a specific
  87. * number of threads. Assimp is always free to ignore this settings, which is
  88. * merely a hint. Usually, the default value (-1) will be fine. However, if
  89. * Assimp is used concurrently from multiple user threads, it might be useful
  90. * to limit each Importer instance to a specific number of cores.
  91. *
  92. * For more information, see the @link threading Threading page@endlink.
  93. * Property type: int, default value: -1.
  94. */
  95. #define AI_CONFIG_GLOB_MULTITHREADING \
  96. "GLOB_MULTITHREADING"
  97. #endif
  98. // ###########################################################################
  99. // POST PROCESSING SETTINGS
  100. // Various stuff to fine-tune the behavior of a specific post processing step.
  101. // ###########################################################################
  102. // ---------------------------------------------------------------------------
  103. /** @brief Maximum bone count per mesh for the SplitbyBoneCount step.
  104. *
  105. * Meshes are split until the maximum number of bones is reached. The default
  106. * value is AI_SBBC_DEFAULT_MAX_BONES, which may be altered at
  107. * compile-time.
  108. * Property data type: integer.
  109. */
  110. // ---------------------------------------------------------------------------
  111. #define AI_CONFIG_PP_SBBC_MAX_BONES \
  112. "PP_SBBC_MAX_BONES"
  113. // default limit for bone count
  114. #if (!defined AI_SBBC_DEFAULT_MAX_BONES)
  115. # define AI_SBBC_DEFAULT_MAX_BONES 60
  116. #endif
  117. // ---------------------------------------------------------------------------
  118. /** @brief Specifies the maximum angle that may be between two vertex tangents
  119. * that their tangents and bi-tangents are smoothed.
  120. *
  121. * This applies to the CalcTangentSpace-Step. The angle is specified
  122. * in degrees. The maximum value is 175.
  123. * Property type: float. Default value: 45 degrees
  124. */
  125. #define AI_CONFIG_PP_CT_MAX_SMOOTHING_ANGLE \
  126. "PP_CT_MAX_SMOOTHING_ANGLE"
  127. // ---------------------------------------------------------------------------
  128. /** @brief Source UV channel for tangent space computation.
  129. *
  130. * The specified channel must exist or an error will be raised.
  131. * Property type: integer. Default value: 0
  132. */
  133. // ---------------------------------------------------------------------------
  134. #define AI_CONFIG_PP_CT_TEXTURE_CHANNEL_INDEX \
  135. "PP_CT_TEXTURE_CHANNEL_INDEX"
  136. // ---------------------------------------------------------------------------
  137. /** @brief Specifies the maximum angle that may be between two face normals
  138. * at the same vertex position that their are smoothed together.
  139. *
  140. * Sometimes referred to as 'crease angle'.
  141. * This applies to the GenSmoothNormals-Step. The angle is specified
  142. * in degrees, so 180 is PI. The default value is 175 degrees (all vertex
  143. * normals are smoothed). The maximum value is 175, too. Property type: float.
  144. * Warning: setting this option may cause a severe loss of performance. The
  145. * performance is unaffected if the #AI_CONFIG_FAVOUR_SPEED flag is set but
  146. * the output quality may be reduced.
  147. */
  148. #define AI_CONFIG_PP_GSN_MAX_SMOOTHING_ANGLE \
  149. "PP_GSN_MAX_SMOOTHING_ANGLE"
  150. // ---------------------------------------------------------------------------
  151. /** @brief Sets the colormap (= palette) to be used to decode embedded
  152. * textures in MDL (Quake or 3DGS) files.
  153. *
  154. * This must be a valid path to a file. The file is 768 (256*3) bytes
  155. * large and contains RGB triplets for each of the 256 palette entries.
  156. * The default value is colormap.lmp. If the file is not found,
  157. * a default palette (from Quake 1) is used.
  158. * Property type: string.
  159. */
  160. #define AI_CONFIG_IMPORT_MDL_COLORMAP \
  161. "IMPORT_MDL_COLORMAP"
  162. // ---------------------------------------------------------------------------
  163. /** @brief Configures the #aiProcess_RemoveRedundantMaterials step to
  164. * keep materials matching a name in a given list.
  165. *
  166. * This is a list of 1 to n strings, ' ' serves as delimiter character.
  167. * Identifiers containing whitespaces must be enclosed in *single*
  168. * quotation marks. For example:<tt>
  169. * "keep-me and_me_to anotherMaterialToBeKept \'name with whitespace\'"</tt>.
  170. * If a material matches on of these names, it will not be modified or
  171. * removed by the postprocessing step nor will other materials be replaced
  172. * by a reference to it. <br>
  173. * This option might be useful if you are using some magic material names
  174. * to pass additional semantics through the content pipeline. This ensures
  175. * they won't be optimized away, but a general optimization is still
  176. * performed for materials not contained in the list.
  177. * Property type: String. Default value: n/a
  178. * @note Linefeeds, tabs or carriage returns are treated as whitespace.
  179. * Material names are case sensitive.
  180. */
  181. #define AI_CONFIG_PP_RRM_EXCLUDE_LIST \
  182. "PP_RRM_EXCLUDE_LIST"
  183. // ---------------------------------------------------------------------------
  184. /** @brief Configures the #aiProcess_PreTransformVertices step to
  185. * keep the scene hierarchy. Meshes are moved to worldspace, but
  186. * no optimization is performed (read: meshes with equal materials are not
  187. * joined. The total number of meshes won't change).
  188. *
  189. * This option could be of use for you if the scene hierarchy contains
  190. * important additional information which you intend to parse.
  191. * For rendering, you can still render all meshes in the scene without
  192. * any transformations.
  193. * Property type: bool. Default value: false.
  194. */
  195. #define AI_CONFIG_PP_PTV_KEEP_HIERARCHY \
  196. "PP_PTV_KEEP_HIERARCHY"
  197. // ---------------------------------------------------------------------------
  198. /** @brief Configures the #aiProcess_PreTransformVertices step to normalize
  199. * all vertex components into the [-1,1] range. That is, a bounding box
  200. * for the whole scene is computed, the maximum component is taken and all
  201. * meshes are scaled appropriately (uniformly of course!).
  202. * This might be useful if you don't know the spatial dimension of the input
  203. * data*/
  204. #define AI_CONFIG_PP_PTV_NORMALIZE \
  205. "PP_PTV_NORMALIZE"
  206. // ---------------------------------------------------------------------------
  207. /** @brief Configures the #aiProcess_PreTransformVertices step to use
  208. * a users defined matrix as the scene root node transformation before
  209. * transforming vertices.
  210. * Property type: bool. Default value: false.
  211. */
  212. #define AI_CONFIG_PP_PTV_ADD_ROOT_TRANSFORMATION \
  213. "PP_PTV_ADD_ROOT_TRANSFORMATION"
  214. // ---------------------------------------------------------------------------
  215. /** @brief Configures the #aiProcess_PreTransformVertices step to use
  216. * a users defined matrix as the scene root node transformation before
  217. * transforming vertices. This property correspond to the 'a1' component
  218. * of the transformation matrix.
  219. * Property type: aiMatrix4x4.
  220. */
  221. #define AI_CONFIG_PP_PTV_ROOT_TRANSFORMATION \
  222. "PP_PTV_ROOT_TRANSFORMATION"
  223. // ---------------------------------------------------------------------------
  224. /** @brief Configures the #aiProcess_FindDegenerates step to
  225. * remove degenerated primitives from the import - immediately.
  226. *
  227. * The default behaviour converts degenerated triangles to lines and
  228. * degenerated lines to points. See the documentation to the
  229. * #aiProcess_FindDegenerates step for a detailed example of the various ways
  230. * to get rid of these lines and points if you don't want them.
  231. * Property type: bool. Default value: false.
  232. */
  233. #define AI_CONFIG_PP_FD_REMOVE \
  234. "PP_FD_REMOVE"
  235. // ---------------------------------------------------------------------------
  236. /**
  237. * @brief Configures the #aiProcess_FindDegenerates to check the area of a
  238. * trinagle to be greates than e-6. If this is not the case the triangle will
  239. * be removed if #AI_CONFIG_PP_FD_REMOVE is set to true.
  240. */
  241. #define AI_CONFIG_PP_FD_CHECKAREA \
  242. "PP_FD_CHECKAREA"
  243. // ---------------------------------------------------------------------------
  244. /** @brief Configures the #aiProcess_OptimizeGraph step to preserve nodes
  245. * matching a name in a given list.
  246. *
  247. * This is a list of 1 to n strings, ' ' serves as delimiter character.
  248. * Identifiers containing whitespaces must be enclosed in *single*
  249. * quotation marks. For example:<tt>
  250. * "keep-me and_me_to anotherNodeToBeKept \'name with whitespace\'"</tt>.
  251. * If a node matches on of these names, it will not be modified or
  252. * removed by the postprocessing step.<br>
  253. * This option might be useful if you are using some magic node names
  254. * to pass additional semantics through the content pipeline. This ensures
  255. * they won't be optimized away, but a general optimization is still
  256. * performed for nodes not contained in the list.
  257. * Property type: String. Default value: n/a
  258. * @note Linefeeds, tabs or carriage returns are treated as whitespace.
  259. * Node names are case sensitive.
  260. */
  261. #define AI_CONFIG_PP_OG_EXCLUDE_LIST \
  262. "PP_OG_EXCLUDE_LIST"
  263. // ---------------------------------------------------------------------------
  264. /** @brief Set the maximum number of triangles in a mesh.
  265. *
  266. * This is used by the "SplitLargeMeshes" PostProcess-Step to determine
  267. * whether a mesh must be split or not.
  268. * @note The default value is AI_SLM_DEFAULT_MAX_TRIANGLES
  269. * Property type: integer.
  270. */
  271. #define AI_CONFIG_PP_SLM_TRIANGLE_LIMIT \
  272. "PP_SLM_TRIANGLE_LIMIT"
  273. // default value for AI_CONFIG_PP_SLM_TRIANGLE_LIMIT
  274. #if (!defined AI_SLM_DEFAULT_MAX_TRIANGLES)
  275. # define AI_SLM_DEFAULT_MAX_TRIANGLES 1000000
  276. #endif
  277. // ---------------------------------------------------------------------------
  278. /** @brief Set the maximum number of vertices in a mesh.
  279. *
  280. * This is used by the "SplitLargeMeshes" PostProcess-Step to determine
  281. * whether a mesh must be split or not.
  282. * @note The default value is AI_SLM_DEFAULT_MAX_VERTICES
  283. * Property type: integer.
  284. */
  285. #define AI_CONFIG_PP_SLM_VERTEX_LIMIT \
  286. "PP_SLM_VERTEX_LIMIT"
  287. // default value for AI_CONFIG_PP_SLM_VERTEX_LIMIT
  288. #if (!defined AI_SLM_DEFAULT_MAX_VERTICES)
  289. # define AI_SLM_DEFAULT_MAX_VERTICES 1000000
  290. #endif
  291. // ---------------------------------------------------------------------------
  292. /** @brief Set the maximum number of bones affecting a single vertex
  293. *
  294. * This is used by the #aiProcess_LimitBoneWeights PostProcess-Step.
  295. * @note The default value is AI_LMW_MAX_WEIGHTS
  296. * Property type: integer.*/
  297. #define AI_CONFIG_PP_LBW_MAX_WEIGHTS \
  298. "PP_LBW_MAX_WEIGHTS"
  299. // default value for AI_CONFIG_PP_LBW_MAX_WEIGHTS
  300. #if (!defined AI_LMW_MAX_WEIGHTS)
  301. # define AI_LMW_MAX_WEIGHTS 0x4
  302. #endif // !! AI_LMW_MAX_WEIGHTS
  303. // ---------------------------------------------------------------------------
  304. /** @brief Lower the deboning threshold in order to remove more bones.
  305. *
  306. * This is used by the #aiProcess_Debone PostProcess-Step.
  307. * @note The default value is AI_DEBONE_THRESHOLD
  308. * Property type: float.*/
  309. #define AI_CONFIG_PP_DB_THRESHOLD \
  310. "PP_DB_THRESHOLD"
  311. // default value for AI_CONFIG_PP_LBW_MAX_WEIGHTS
  312. #if (!defined AI_DEBONE_THRESHOLD)
  313. # define AI_DEBONE_THRESHOLD 1.0f
  314. #endif // !! AI_DEBONE_THRESHOLD
  315. // ---------------------------------------------------------------------------
  316. /** @brief Require all bones qualify for deboning before removing any
  317. *
  318. * This is used by the #aiProcess_Debone PostProcess-Step.
  319. * @note The default value is 0
  320. * Property type: bool.*/
  321. #define AI_CONFIG_PP_DB_ALL_OR_NONE \
  322. "PP_DB_ALL_OR_NONE"
  323. /** @brief Default value for the #AI_CONFIG_PP_ICL_PTCACHE_SIZE property
  324. */
  325. #ifndef PP_ICL_PTCACHE_SIZE
  326. # define PP_ICL_PTCACHE_SIZE 12
  327. #endif
  328. // ---------------------------------------------------------------------------
  329. /** @brief Set the size of the post-transform vertex cache to optimize the
  330. * vertices for. This configures the #aiProcess_ImproveCacheLocality step.
  331. *
  332. * The size is given in vertices. Of course you can't know how the vertex
  333. * format will exactly look like after the import returns, but you can still
  334. * guess what your meshes will probably have.
  335. * @note The default value is #PP_ICL_PTCACHE_SIZE. That results in slight
  336. * performance improvements for most nVidia/AMD cards since 2002.
  337. * Property type: integer.
  338. */
  339. #define AI_CONFIG_PP_ICL_PTCACHE_SIZE "PP_ICL_PTCACHE_SIZE"
  340. // ---------------------------------------------------------------------------
  341. /** @brief Enumerates components of the aiScene and aiMesh data structures
  342. * that can be excluded from the import using the #aiProcess_RemoveComponent step.
  343. *
  344. * See the documentation to #aiProcess_RemoveComponent for more details.
  345. */
  346. enum aiComponent
  347. {
  348. /** Normal vectors */
  349. #ifdef SWIG
  350. aiComponent_NORMALS = 0x2,
  351. #else
  352. aiComponent_NORMALS = 0x2u,
  353. #endif
  354. /** Tangents and bitangents go always together ... */
  355. #ifdef SWIG
  356. aiComponent_TANGENTS_AND_BITANGENTS = 0x4,
  357. #else
  358. aiComponent_TANGENTS_AND_BITANGENTS = 0x4u,
  359. #endif
  360. /** ALL color sets
  361. * Use aiComponent_COLORn(N) to specify the N'th set */
  362. aiComponent_COLORS = 0x8,
  363. /** ALL texture UV sets
  364. * aiComponent_TEXCOORDn(N) to specify the N'th set */
  365. aiComponent_TEXCOORDS = 0x10,
  366. /** Removes all bone weights from all meshes.
  367. * The scenegraph nodes corresponding to the bones are NOT removed.
  368. * use the #aiProcess_OptimizeGraph step to do this */
  369. aiComponent_BONEWEIGHTS = 0x20,
  370. /** Removes all node animations (aiScene::mAnimations).
  371. * The corresponding scenegraph nodes are NOT removed.
  372. * use the #aiProcess_OptimizeGraph step to do this */
  373. aiComponent_ANIMATIONS = 0x40,
  374. /** Removes all embedded textures (aiScene::mTextures) */
  375. aiComponent_TEXTURES = 0x80,
  376. /** Removes all light sources (aiScene::mLights).
  377. * The corresponding scenegraph nodes are NOT removed.
  378. * use the #aiProcess_OptimizeGraph step to do this */
  379. aiComponent_LIGHTS = 0x100,
  380. /** Removes all cameras (aiScene::mCameras).
  381. * The corresponding scenegraph nodes are NOT removed.
  382. * use the #aiProcess_OptimizeGraph step to do this */
  383. aiComponent_CAMERAS = 0x200,
  384. /** Removes all meshes (aiScene::mMeshes). */
  385. aiComponent_MESHES = 0x400,
  386. /** Removes all materials. One default material will
  387. * be generated, so aiScene::mNumMaterials will be 1. */
  388. aiComponent_MATERIALS = 0x800,
  389. /** This value is not used. It is just there to force the
  390. * compiler to map this enum to a 32 Bit integer. */
  391. #ifndef SWIG
  392. _aiComponent_Force32Bit = 0x9fffffff
  393. #endif
  394. };
  395. // Remove a specific color channel 'n'
  396. #define aiComponent_COLORSn(n) (1u << (n+20u))
  397. // Remove a specific UV channel 'n'
  398. #define aiComponent_TEXCOORDSn(n) (1u << (n+25u))
  399. // ---------------------------------------------------------------------------
  400. /** @brief Input parameter to the #aiProcess_RemoveComponent step:
  401. * Specifies the parts of the data structure to be removed.
  402. *
  403. * See the documentation to this step for further details. The property
  404. * is expected to be an integer, a bitwise combination of the
  405. * #aiComponent flags defined above in this header. The default
  406. * value is 0. Important: if no valid mesh is remaining after the
  407. * step has been executed (e.g you thought it was funny to specify ALL
  408. * of the flags defined above) the import FAILS. Mainly because there is
  409. * no data to work on anymore ...
  410. */
  411. #define AI_CONFIG_PP_RVC_FLAGS \
  412. "PP_RVC_FLAGS"
  413. // ---------------------------------------------------------------------------
  414. /** @brief Input parameter to the #aiProcess_SortByPType step:
  415. * Specifies which primitive types are removed by the step.
  416. *
  417. * This is a bitwise combination of the aiPrimitiveType flags.
  418. * Specifying all of them is illegal, of course. A typical use would
  419. * be to exclude all line and point meshes from the import. This
  420. * is an integer property, its default value is 0.
  421. */
  422. #define AI_CONFIG_PP_SBP_REMOVE \
  423. "PP_SBP_REMOVE"
  424. // ---------------------------------------------------------------------------
  425. /** @brief Input parameter to the #aiProcess_FindInvalidData step:
  426. * Specifies the floating-point accuracy for animation values. The step
  427. * checks for animation tracks where all frame values are absolutely equal
  428. * and removes them. This tweakable controls the epsilon for floating-point
  429. * comparisons - two keys are considered equal if the invariant
  430. * abs(n0-n1)>epsilon holds true for all vector respectively quaternion
  431. * components. The default value is 0.f - comparisons are exact then.
  432. */
  433. #define AI_CONFIG_PP_FID_ANIM_ACCURACY \
  434. "PP_FID_ANIM_ACCURACY"
  435. // ---------------------------------------------------------------------------
  436. /** @brief Input parameter to the #aiProcess_FindInvalidData step:
  437. * Set to true to ignore texture coordinates. This may be useful if you have
  438. * to assign different kind of textures like one for the summer or one for the winter.
  439. */
  440. #define AI_CONFIG_PP_FID_IGNORE_TEXTURECOORDS \
  441. "PP_FID_IGNORE_TEXTURECOORDS"
  442. // TransformUVCoords evaluates UV scalings
  443. #define AI_UVTRAFO_SCALING 0x1
  444. // TransformUVCoords evaluates UV rotations
  445. #define AI_UVTRAFO_ROTATION 0x2
  446. // TransformUVCoords evaluates UV translation
  447. #define AI_UVTRAFO_TRANSLATION 0x4
  448. // Everything baked together -> default value
  449. #define AI_UVTRAFO_ALL (AI_UVTRAFO_SCALING | AI_UVTRAFO_ROTATION | AI_UVTRAFO_TRANSLATION)
  450. // ---------------------------------------------------------------------------
  451. /** @brief Input parameter to the #aiProcess_TransformUVCoords step:
  452. * Specifies which UV transformations are evaluated.
  453. *
  454. * This is a bitwise combination of the AI_UVTRAFO_XXX flags (integer
  455. * property, of course). By default all transformations are enabled
  456. * (AI_UVTRAFO_ALL).
  457. */
  458. #define AI_CONFIG_PP_TUV_EVALUATE \
  459. "PP_TUV_EVALUATE"
  460. // ---------------------------------------------------------------------------
  461. /** @brief A hint to assimp to favour speed against import quality.
  462. *
  463. * Enabling this option may result in faster loading, but it needn't.
  464. * It represents just a hint to loaders and post-processing steps to use
  465. * faster code paths, if possible.
  466. * This property is expected to be an integer, != 0 stands for true.
  467. * The default value is 0.
  468. */
  469. #define AI_CONFIG_FAVOUR_SPEED \
  470. "FAVOUR_SPEED"
  471. // ###########################################################################
  472. // IMPORTER SETTINGS
  473. // Various stuff to fine-tune the behaviour of specific importer plugins.
  474. // ###########################################################################
  475. // ---------------------------------------------------------------------------
  476. /** @brief Set whether the fbx importer will merge all geometry layers present
  477. * in the source file or take only the first.
  478. *
  479. * The default value is true (1)
  480. * Property type: bool
  481. */
  482. #define AI_CONFIG_IMPORT_FBX_READ_ALL_GEOMETRY_LAYERS \
  483. "IMPORT_FBX_READ_ALL_GEOMETRY_LAYERS"
  484. // ---------------------------------------------------------------------------
  485. /** @brief Set whether the fbx importer will read all materials present in the
  486. * source file or take only the referenced materials.
  487. *
  488. * This is void unless IMPORT_FBX_READ_MATERIALS=1.
  489. *
  490. * The default value is false (0)
  491. * Property type: bool
  492. */
  493. #define AI_CONFIG_IMPORT_FBX_READ_ALL_MATERIALS \
  494. "IMPORT_FBX_READ_ALL_MATERIALS"
  495. // ---------------------------------------------------------------------------
  496. /** @brief Set whether the fbx importer will read materials.
  497. *
  498. * The default value is true (1)
  499. * Property type: bool
  500. */
  501. #define AI_CONFIG_IMPORT_FBX_READ_MATERIALS \
  502. "IMPORT_FBX_READ_MATERIALS"
  503. // ---------------------------------------------------------------------------
  504. /** @brief Set whether the fbx importer will read embedded textures.
  505. *
  506. * The default value is true (1)
  507. * Property type: bool
  508. */
  509. #define AI_CONFIG_IMPORT_FBX_READ_TEXTURES \
  510. "IMPORT_FBX_READ_TEXTURES"
  511. // ---------------------------------------------------------------------------
  512. /** @brief Set whether the fbx importer will read cameras.
  513. *
  514. * The default value is true (1)
  515. * Property type: bool
  516. */
  517. #define AI_CONFIG_IMPORT_FBX_READ_CAMERAS \
  518. "IMPORT_FBX_READ_CAMERAS"
  519. // ---------------------------------------------------------------------------
  520. /** @brief Set whether the fbx importer will read light sources.
  521. *
  522. * The default value is true (1)
  523. * Property type: bool
  524. */
  525. #define AI_CONFIG_IMPORT_FBX_READ_LIGHTS \
  526. "IMPORT_FBX_READ_LIGHTS"
  527. // ---------------------------------------------------------------------------
  528. /** @brief Set whether the fbx importer will read animations.
  529. *
  530. * The default value is true (1)
  531. * Property type: bool
  532. */
  533. #define AI_CONFIG_IMPORT_FBX_READ_ANIMATIONS \
  534. "IMPORT_FBX_READ_ANIMATIONS"
  535. // ---------------------------------------------------------------------------
  536. /** @brief Set whether the fbx importer will read weights.
  537. *
  538. * The default value is true (1)
  539. * Property type: bool
  540. */
  541. #define AI_CONFIG_IMPORT_FBX_READ_WEIGHTS \
  542. "IMPORT_FBX_READ_WEIGHTS"
  543. // ---------------------------------------------------------------------------
  544. /** @brief Set whether the fbx importer will act in strict mode in which only
  545. * FBX 2013 is supported and any other sub formats are rejected. FBX 2013
  546. * is the primary target for the importer, so this format is best
  547. * supported and well-tested.
  548. *
  549. * The default value is false (0)
  550. * Property type: bool
  551. */
  552. #define AI_CONFIG_IMPORT_FBX_STRICT_MODE \
  553. "IMPORT_FBX_STRICT_MODE"
  554. // ---------------------------------------------------------------------------
  555. /** @brief Set whether the fbx importer will preserve pivot points for
  556. * transformations (as extra nodes). If set to false, pivots and offsets
  557. * will be evaluated whenever possible.
  558. *
  559. * The default value is true (1)
  560. * Property type: bool
  561. */
  562. #define AI_CONFIG_IMPORT_FBX_PRESERVE_PIVOTS \
  563. "IMPORT_FBX_PRESERVE_PIVOTS"
  564. // ---------------------------------------------------------------------------
  565. /** @brief Specifies whether the importer will drop empty animation curves or
  566. * animation curves which match the bind pose transformation over their
  567. * entire defined range.
  568. *
  569. * The default value is true (1)
  570. * Property type: bool
  571. */
  572. #define AI_CONFIG_IMPORT_FBX_OPTIMIZE_EMPTY_ANIMATION_CURVES \
  573. "IMPORT_FBX_OPTIMIZE_EMPTY_ANIMATION_CURVES"
  574. // ---------------------------------------------------------------------------
  575. /** @brief Set whether the fbx importer will use the legacy embedded texture naming.
  576. *
  577. * The default value is false (0)
  578. * Property type: bool
  579. */
  580. #define AI_CONFIG_IMPORT_FBX_EMBEDDED_TEXTURES_LEGACY_NAMING \
  581. "AI_CONFIG_IMPORT_FBX_EMBEDDED_TEXTURES_LEGACY_NAMING"
  582. // ---------------------------------------------------------------------------
  583. /** @brief Set wether the importer shall not remove empty bones.
  584. *
  585. * Empty bone are often used to define connections for other models.
  586. */
  587. #define AI_CONFIG_IMPORT_REMOVE_EMPTY_BONES \
  588. "AI_CONFIG_IMPORT_REMOVE_EMPTY_BONES"
  589. // ---------------------------------------------------------------------------
  590. /** @brief Set wether the FBX importer shall convert the unit from cm to m.
  591. */
  592. #define AI_CONFIG_FBX_CONVERT_TO_M \
  593. "AI_CONFIG_FBX_CONVERT_TO_M"
  594. // ---------------------------------------------------------------------------
  595. /** @brief Set the vertex animation keyframe to be imported
  596. *
  597. * ASSIMP does not support vertex keyframes (only bone animation is supported).
  598. * The library reads only one frame of models with vertex animations.
  599. * By default this is the first frame.
  600. * \note The default value is 0. This option applies to all importers.
  601. * However, it is also possible to override the global setting
  602. * for a specific loader. You can use the AI_CONFIG_IMPORT_XXX_KEYFRAME
  603. * options (where XXX is a placeholder for the file format for which you
  604. * want to override the global setting).
  605. * Property type: integer.
  606. */
  607. #define AI_CONFIG_IMPORT_GLOBAL_KEYFRAME "IMPORT_GLOBAL_KEYFRAME"
  608. #define AI_CONFIG_IMPORT_MD3_KEYFRAME "IMPORT_MD3_KEYFRAME"
  609. #define AI_CONFIG_IMPORT_MD2_KEYFRAME "IMPORT_MD2_KEYFRAME"
  610. #define AI_CONFIG_IMPORT_MDL_KEYFRAME "IMPORT_MDL_KEYFRAME"
  611. #define AI_CONFIG_IMPORT_MDC_KEYFRAME "IMPORT_MDC_KEYFRAME"
  612. #define AI_CONFIG_IMPORT_SMD_KEYFRAME "IMPORT_SMD_KEYFRAME"
  613. #define AI_CONFIG_IMPORT_UNREAL_KEYFRAME "IMPORT_UNREAL_KEYFRAME"
  614. // ---------------------------------------------------------------------------
  615. /** @brief Set whether the MDL (HL1) importer will read animations.
  616. *
  617. * The default value is true (1)
  618. * Property type: bool
  619. */
  620. #define AI_CONFIG_IMPORT_MDL_HL1_READ_ANIMATIONS "IMPORT_MDL_HL1_READ_ANIMATIONS"
  621. // ---------------------------------------------------------------------------
  622. /** @brief Set whether the MDL (HL1) importer will read animation events.
  623. * \note This property requires AI_CONFIG_IMPORT_MDL_HL1_READ_ANIMATIONS to be set to true.
  624. *
  625. * The default value is true (1)
  626. * Property type: bool
  627. */
  628. #define AI_CONFIG_IMPORT_MDL_HL1_READ_ANIMATION_EVENTS "IMPORT_MDL_HL1_READ_ANIMATION_EVENTS"
  629. // ---------------------------------------------------------------------------
  630. /** @brief Set whether the MDL (HL1) importer will read blend controllers.
  631. * \note This property requires AI_CONFIG_IMPORT_MDL_HL1_READ_ANIMATIONS to be set to true.
  632. *
  633. * The default value is true (1)
  634. * Property type: bool
  635. */
  636. #define AI_CONFIG_IMPORT_MDL_HL1_READ_BLEND_CONTROLLERS "IMPORT_MDL_HL1_READ_BLEND_CONTROLLERS"
  637. // ---------------------------------------------------------------------------
  638. /** @brief Set whether the MDL (HL1) importer will read sequence transition graph.
  639. * \note This property requires AI_CONFIG_IMPORT_MDL_HL1_READ_ANIMATIONS to be set to true.
  640. *
  641. * The default value is true (1)
  642. * Property type: bool
  643. */
  644. #define AI_CONFIG_IMPORT_MDL_HL1_READ_SEQUENCE_TRANSITIONS "IMPORT_MDL_HL1_READ_SEQUENCE_TRANSITIONS"
  645. // ---------------------------------------------------------------------------
  646. /** @brief Set whether the MDL (HL1) importer will read attachments info.
  647. *
  648. * The default value is true (1)
  649. * Property type: bool
  650. */
  651. #define AI_CONFIG_IMPORT_MDL_HL1_READ_ATTACHMENTS "IMPORT_MDL_HL1_READ_ATTACHMENTS"
  652. // ---------------------------------------------------------------------------
  653. /** @brief Set whether the MDL (HL1) importer will read bone controllers info.
  654. *
  655. * The default value is true (1)
  656. * Property type: bool
  657. */
  658. #define AI_CONFIG_IMPORT_MDL_HL1_READ_BONE_CONTROLLERS "IMPORT_MDL_HL1_READ_BONE_CONTROLLERS"
  659. // ---------------------------------------------------------------------------
  660. /** @brief Set whether the MDL (HL1) importer will read hitboxes info.
  661. *
  662. * The default value is true (1)
  663. * Property type: bool
  664. */
  665. #define AI_CONFIG_IMPORT_MDL_HL1_READ_HITBOXES "IMPORT_MDL_HL1_READ_HITBOXES"
  666. // ---------------------------------------------------------------------------
  667. /** @brief Set whether the MDL (HL1) importer will read miscellaneous global model info.
  668. *
  669. * The default value is true (1)
  670. * Property type: bool
  671. */
  672. #define AI_CONFIG_IMPORT_MDL_HL1_READ_MISC_GLOBAL_INFO "IMPORT_MDL_HL1_READ_MISC_GLOBAL_INFO"
  673. // ---------------------------------------------------------------------------
  674. /** Smd load multiple animations
  675. *
  676. * Property type: bool. Default value: true.
  677. */
  678. #define AI_CONFIG_IMPORT_SMD_LOAD_ANIMATION_LIST "IMPORT_SMD_LOAD_ANIMATION_LIST"
  679. // ---------------------------------------------------------------------------
  680. /** @brief Configures the AC loader to collect all surfaces which have the
  681. * "Backface cull" flag set in separate meshes.
  682. *
  683. * Property type: bool. Default value: true.
  684. */
  685. #define AI_CONFIG_IMPORT_AC_SEPARATE_BFCULL \
  686. "IMPORT_AC_SEPARATE_BFCULL"
  687. // ---------------------------------------------------------------------------
  688. /** @brief Configures whether the AC loader evaluates subdivision surfaces (
  689. * indicated by the presence of the 'subdiv' attribute in the file). By
  690. * default, Assimp performs the subdivision using the standard
  691. * Catmull-Clark algorithm
  692. *
  693. * * Property type: bool. Default value: true.
  694. */
  695. #define AI_CONFIG_IMPORT_AC_EVAL_SUBDIVISION \
  696. "IMPORT_AC_EVAL_SUBDIVISION"
  697. // ---------------------------------------------------------------------------
  698. /** @brief Configures the UNREAL 3D loader to separate faces with different
  699. * surface flags (e.g. two-sided vs. single-sided).
  700. *
  701. * * Property type: bool. Default value: true.
  702. */
  703. #define AI_CONFIG_IMPORT_UNREAL_HANDLE_FLAGS \
  704. "UNREAL_HANDLE_FLAGS"
  705. // ---------------------------------------------------------------------------
  706. /** @brief Configures the terragen import plugin to compute uv's for
  707. * terrains, if not given. Furthermore a default texture is assigned.
  708. *
  709. * UV coordinates for terrains are so simple to compute that you'll usually
  710. * want to compute them on your own, if you need them. This option is intended
  711. * for model viewers which want to offer an easy way to apply textures to
  712. * terrains.
  713. * * Property type: bool. Default value: false.
  714. */
  715. #define AI_CONFIG_IMPORT_TER_MAKE_UVS \
  716. "IMPORT_TER_MAKE_UVS"
  717. // ---------------------------------------------------------------------------
  718. /** @brief Configures the ASE loader to always reconstruct normal vectors
  719. * basing on the smoothing groups loaded from the file.
  720. *
  721. * Some ASE files have carry invalid normals, other don't.
  722. * * Property type: bool. Default value: true.
  723. */
  724. #define AI_CONFIG_IMPORT_ASE_RECONSTRUCT_NORMALS \
  725. "IMPORT_ASE_RECONSTRUCT_NORMALS"
  726. // ---------------------------------------------------------------------------
  727. /** @brief Configures the M3D loader to detect and process multi-part
  728. * Quake player models.
  729. *
  730. * These models usually consist of 3 files, lower.md3, upper.md3 and
  731. * head.md3. If this property is set to true, Assimp will try to load and
  732. * combine all three files if one of them is loaded.
  733. * Property type: bool. Default value: true.
  734. */
  735. #define AI_CONFIG_IMPORT_MD3_HANDLE_MULTIPART \
  736. "IMPORT_MD3_HANDLE_MULTIPART"
  737. // ---------------------------------------------------------------------------
  738. /** @brief Tells the MD3 loader which skin files to load.
  739. *
  740. * When loading MD3 files, Assimp checks whether a file
  741. * [md3_file_name]_[skin_name].skin is existing. These files are used by
  742. * Quake III to be able to assign different skins (e.g. red and blue team)
  743. * to models. 'default', 'red', 'blue' are typical skin names.
  744. * Property type: String. Default value: "default".
  745. */
  746. #define AI_CONFIG_IMPORT_MD3_SKIN_NAME \
  747. "IMPORT_MD3_SKIN_NAME"
  748. // ---------------------------------------------------------------------------
  749. /** @brief Specify if to try load Quake 3 shader files. This also controls
  750. * original surface name handling: when disabled it will be used unchanged.
  751. *
  752. * Property type: bool. Default value: true.
  753. */
  754. #define AI_CONFIG_IMPORT_MD3_LOAD_SHADERS \
  755. "IMPORT_MD3_LOAD_SHADERS"
  756. // ---------------------------------------------------------------------------
  757. /** @brief Specify the Quake 3 shader file to be used for a particular
  758. * MD3 file. This can also be a search path.
  759. *
  760. * By default Assimp's behaviour is as follows: If a MD3 file
  761. * <tt>any_path/models/any_q3_subdir/model_name/file_name.md3</tt> is
  762. * loaded, the library tries to locate the corresponding shader file in
  763. * <tt>any_path/scripts/model_name.shader</tt>. This property overrides this
  764. * behaviour. It can either specify a full path to the shader to be loaded
  765. * or alternatively the path (relative or absolute) to the directory where
  766. * the shaders for all MD3s to be loaded reside. Assimp attempts to open
  767. * <tt>IMPORT_MD3_SHADER_SRC/model_name.shader</tt> first, <tt>IMPORT_MD3_SHADER_SRC/file_name.shader</tt>
  768. * is the fallback file. Note that IMPORT_MD3_SHADER_SRC should have a terminal (back)slash.
  769. * Property type: String. Default value: n/a.
  770. */
  771. #define AI_CONFIG_IMPORT_MD3_SHADER_SRC \
  772. "IMPORT_MD3_SHADER_SRC"
  773. // ---------------------------------------------------------------------------
  774. /** @brief Configures the LWO loader to load just one layer from the model.
  775. *
  776. * LWO files consist of layers and in some cases it could be useful to load
  777. * only one of them. This property can be either a string - which specifies
  778. * the name of the layer - or an integer - the index of the layer. If the
  779. * property is not set the whole LWO model is loaded. Loading fails if the
  780. * requested layer is not available. The layer index is zero-based and the
  781. * layer name may not be empty.<br>
  782. * Property type: Integer. Default value: all layers are loaded.
  783. */
  784. #define AI_CONFIG_IMPORT_LWO_ONE_LAYER_ONLY \
  785. "IMPORT_LWO_ONE_LAYER_ONLY"
  786. // ---------------------------------------------------------------------------
  787. /** @brief Configures the MD5 loader to not load the MD5ANIM file for
  788. * a MD5MESH file automatically.
  789. *
  790. * The default strategy is to look for a file with the same name but the
  791. * MD5ANIM extension in the same directory. If it is found, it is loaded
  792. * and combined with the MD5MESH file. This configuration option can be
  793. * used to disable this behaviour.
  794. *
  795. * * Property type: bool. Default value: false.
  796. */
  797. #define AI_CONFIG_IMPORT_MD5_NO_ANIM_AUTOLOAD \
  798. "IMPORT_MD5_NO_ANIM_AUTOLOAD"
  799. // ---------------------------------------------------------------------------
  800. /** @brief Defines the begin of the time range for which the LWS loader
  801. * evaluates animations and computes aiNodeAnim's.
  802. *
  803. * Assimp provides full conversion of LightWave's envelope system, including
  804. * pre and post conditions. The loader computes linearly subsampled animation
  805. * chanels with the frame rate given in the LWS file. This property defines
  806. * the start time. Note: animation channels are only generated if a node
  807. * has at least one envelope with more tan one key assigned. This property.
  808. * is given in frames, '0' is the first frame. By default, if this property
  809. * is not set, the importer takes the animation start from the input LWS
  810. * file ('FirstFrame' line)<br>
  811. * Property type: Integer. Default value: taken from file.
  812. *
  813. * @see AI_CONFIG_IMPORT_LWS_ANIM_END - end of the imported time range
  814. */
  815. #define AI_CONFIG_IMPORT_LWS_ANIM_START \
  816. "IMPORT_LWS_ANIM_START"
  817. #define AI_CONFIG_IMPORT_LWS_ANIM_END \
  818. "IMPORT_LWS_ANIM_END"
  819. // ---------------------------------------------------------------------------
  820. /** @brief Defines the output frame rate of the IRR loader.
  821. *
  822. * IRR animations are difficult to convert for Assimp and there will
  823. * always be a loss of quality. This setting defines how many keys per second
  824. * are returned by the converter.<br>
  825. * Property type: integer. Default value: 100
  826. */
  827. #define AI_CONFIG_IMPORT_IRR_ANIM_FPS \
  828. "IMPORT_IRR_ANIM_FPS"
  829. // ---------------------------------------------------------------------------
  830. /** @brief Ogre Importer will try to find referenced materials from this file.
  831. *
  832. * Ogre meshes reference with material names, this does not tell Assimp the file
  833. * where it is located in. Assimp will try to find the source file in the following
  834. * order: <material-name>.material, <mesh-filename-base>.material and
  835. * lastly the material name defined by this config property.
  836. * <br>
  837. * Property type: String. Default value: Scene.material.
  838. */
  839. #define AI_CONFIG_IMPORT_OGRE_MATERIAL_FILE \
  840. "IMPORT_OGRE_MATERIAL_FILE"
  841. // ---------------------------------------------------------------------------
  842. /** @brief Ogre Importer detect the texture usage from its filename.
  843. *
  844. * Ogre material texture units do not define texture type, the textures usage
  845. * depends on the used shader or Ogre's fixed pipeline. If this config property
  846. * is true Assimp will try to detect the type from the textures filename postfix:
  847. * _n, _nrm, _nrml, _normal, _normals and _normalmap for normal map, _s, _spec,
  848. * _specular and _specularmap for specular map, _l, _light, _lightmap, _occ
  849. * and _occlusion for light map, _disp and _displacement for displacement map.
  850. * The matching is case insensitive. Post fix is taken between the last
  851. * underscore and the last period.
  852. * Default behavior is to detect type from lower cased texture unit name by
  853. * matching against: normalmap, specularmap, lightmap and displacementmap.
  854. * For both cases if no match is found aiTextureType_DIFFUSE is used.
  855. * <br>
  856. * Property type: Bool. Default value: false.
  857. */
  858. #define AI_CONFIG_IMPORT_OGRE_TEXTURETYPE_FROM_FILENAME \
  859. "IMPORT_OGRE_TEXTURETYPE_FROM_FILENAME"
  860. /** @brief Specifies whether the Android JNI asset extraction is supported.
  861. *
  862. * Turn on this option if you want to manage assets in native
  863. * Android application without having to keep the internal directory and asset
  864. * manager pointer.
  865. */
  866. #define AI_CONFIG_ANDROID_JNI_ASSIMP_MANAGER_SUPPORT "AI_CONFIG_ANDROID_JNI_ASSIMP_MANAGER_SUPPORT"
  867. // ---------------------------------------------------------------------------
  868. /** @brief Specifies whether the IFC loader skips over IfcSpace elements.
  869. *
  870. * IfcSpace elements (and their geometric representations) are used to
  871. * represent, well, free space in a building storey.<br>
  872. * Property type: Bool. Default value: true.
  873. */
  874. #define AI_CONFIG_IMPORT_IFC_SKIP_SPACE_REPRESENTATIONS "IMPORT_IFC_SKIP_SPACE_REPRESENTATIONS"
  875. // ---------------------------------------------------------------------------
  876. /** @brief Specifies whether the IFC loader will use its own, custom triangulation
  877. * algorithm to triangulate wall and floor meshes.
  878. *
  879. * If this property is set to false, walls will be either triangulated by
  880. * #aiProcess_Triangulate or will be passed through as huge polygons with
  881. * faked holes (i.e. holes that are connected with the outer boundary using
  882. * a dummy edge). It is highly recommended to set this property to true
  883. * if you want triangulated data because #aiProcess_Triangulate is known to
  884. * have problems with the kind of polygons that the IFC loader spits out for
  885. * complicated meshes.
  886. * Property type: Bool. Default value: true.
  887. */
  888. #define AI_CONFIG_IMPORT_IFC_CUSTOM_TRIANGULATION "IMPORT_IFC_CUSTOM_TRIANGULATION"
  889. // ---------------------------------------------------------------------------
  890. /** @brief Set the tessellation conic angle for IFC smoothing curves.
  891. *
  892. * This is used by the IFC importer to determine the tessellation parameter
  893. * for smoothing curves.
  894. * @note The default value is AI_IMPORT_IFC_DEFAULT_SMOOTHING_ANGLE and the
  895. * accepted values are in range [5.0, 120.0].
  896. * Property type: Float.
  897. */
  898. #define AI_CONFIG_IMPORT_IFC_SMOOTHING_ANGLE "IMPORT_IFC_SMOOTHING_ANGLE"
  899. // default value for AI_CONFIG_IMPORT_IFC_SMOOTHING_ANGLE
  900. #if (!defined AI_IMPORT_IFC_DEFAULT_SMOOTHING_ANGLE)
  901. # define AI_IMPORT_IFC_DEFAULT_SMOOTHING_ANGLE 10.0f
  902. #endif
  903. // ---------------------------------------------------------------------------
  904. /** @brief Set the tessellation for IFC cylindrical shapes.
  905. *
  906. * This is used by the IFC importer to determine the tessellation parameter
  907. * for cylindrical shapes, i.e. the number of segments used to approximate a circle.
  908. * @note The default value is AI_IMPORT_IFC_DEFAULT_CYLINDRICAL_TESSELLATION and the
  909. * accepted values are in range [3, 180].
  910. * Property type: Integer.
  911. */
  912. #define AI_CONFIG_IMPORT_IFC_CYLINDRICAL_TESSELLATION "IMPORT_IFC_CYLINDRICAL_TESSELLATION"
  913. // default value for AI_CONFIG_IMPORT_IFC_CYLINDRICAL_TESSELLATION
  914. #if (!defined AI_IMPORT_IFC_DEFAULT_CYLINDRICAL_TESSELLATION)
  915. # define AI_IMPORT_IFC_DEFAULT_CYLINDRICAL_TESSELLATION 32
  916. #endif
  917. // ---------------------------------------------------------------------------
  918. /** @brief Specifies whether the Collada loader will ignore the provided up direction.
  919. *
  920. * If this property is set to true, the up direction provided in the file header will
  921. * be ignored and the file will be loaded as is.
  922. * Property type: Bool. Default value: false.
  923. */
  924. #define AI_CONFIG_IMPORT_COLLADA_IGNORE_UP_DIRECTION "IMPORT_COLLADA_IGNORE_UP_DIRECTION"
  925. // ---------------------------------------------------------------------------
  926. /** @brief Specifies whether the Collada loader should use Collada names.
  927. *
  928. * If this property is set to true, the Collada names will be used as the node and
  929. * mesh names. The default is to use the id tag (resp. sid tag, if no id tag is present)
  930. * instead.
  931. * Property type: Bool. Default value: false.
  932. */
  933. #define AI_CONFIG_IMPORT_COLLADA_USE_COLLADA_NAMES "IMPORT_COLLADA_USE_COLLADA_NAMES"
  934. // ---------- All the Export defines ------------
  935. /** @brief Specifies the xfile use double for real values of float
  936. *
  937. * Property type: Bool. Default value: false.
  938. */
  939. #define AI_CONFIG_EXPORT_XFILE_64BIT "EXPORT_XFILE_64BIT"
  940. /** @brief Specifies whether the assimp export shall be able to export point clouds
  941. *
  942. * When this flag is not defined the render data has to contain valid faces.
  943. * Point clouds are only a collection of vertices which have nor spatial organization
  944. * by a face and the validation process will remove them. Enabling this feature will
  945. * switch off the flag and enable the functionality to export pure point clouds.
  946. */
  947. #define AI_CONFIG_EXPORT_POINT_CLOUDS "EXPORT_POINT_CLOUDS"
  948. /**
  949. * @brief Specifies the blob name, assimp uses for exporting.
  950. *
  951. * Some formats require auxiliary files to be written, that need to be linked back into
  952. * the original file. For example, OBJ files export materials to a separate MTL file and
  953. * use the `mtllib` keyword to reference this file.
  954. *
  955. * When exporting blobs using #ExportToBlob, assimp does not know the name of the blob
  956. * file and thus outputs `mtllib $blobfile.mtl`, which might not be desired, since the
  957. * MTL file might be called differently.
  958. *
  959. * This property can be used to give the exporter a hint on how to use the magic
  960. * `$blobfile` keyword. If the exporter detects the keyword and is provided with a name
  961. * for the blob, it instead uses this name.
  962. */
  963. #define AI_CONFIG_EXPORT_BLOB_NAME "EXPORT_BLOB_NAME"
  964. /**
  965. * @brief Specifies a gobal key factor for scale, float value
  966. */
  967. #define AI_CONFIG_GLOBAL_SCALE_FACTOR_KEY "GLOBAL_SCALE_FACTOR"
  968. #if (!defined AI_CONFIG_GLOBAL_SCALE_FACTOR_DEFAULT)
  969. # define AI_CONFIG_GLOBAL_SCALE_FACTOR_DEFAULT 1.0f
  970. #endif // !! AI_DEBONE_THRESHOLD
  971. #define AI_CONFIG_APP_SCALE_KEY "APP_SCALE_FACTOR"
  972. #if (!defined AI_CONFIG_APP_SCALE_KEY)
  973. # define AI_CONFIG_APP_SCALE_KEY 1.0
  974. #endif // AI_CONFIG_APP_SCALE_KEY
  975. // ---------- All the Build/Compile-time defines ------------
  976. /** @brief Specifies if double precision is supported inside assimp
  977. *
  978. * Property type: Bool. Default value: undefined.
  979. */
  980. #cmakedefine ASSIMP_DOUBLE_PRECISION 1
  981. #endif // !! AI_CONFIG_H_INC