config.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. // Copyright 2009-2021 Intel Corporation
  2. // SPDX-License-Identifier: Apache-2.0
  3. /* #undef EMBREE_RAY_MASK */
  4. /* #undef EMBREE_STAT_COUNTERS */
  5. /* #undef EMBREE_BACKFACE_CULLING */
  6. /* #undef EMBREE_BACKFACE_CULLING_CURVES */
  7. #define EMBREE_FILTER_FUNCTION
  8. /* #undef EMBREE_IGNORE_INVALID_RAYS */
  9. #define EMBREE_GEOMETRY_TRIANGLE
  10. /* #undef EMBREE_GEOMETRY_QUAD */
  11. /* #undef EMBREE_GEOMETRY_CURVE */
  12. /* #undef EMBREE_GEOMETRY_SUBDIVISION */
  13. /* #undef EMBREE_GEOMETRY_USER */
  14. /* #undef EMBREE_GEOMETRY_INSTANCE */
  15. /* #undef EMBREE_GEOMETRY_GRID */
  16. /* #undef EMBREE_GEOMETRY_POINT */
  17. #define EMBREE_RAY_PACKETS
  18. /* #undef EMBREE_COMPACT_POLYS */
  19. #define EMBREE_CURVE_SELF_INTERSECTION_AVOIDANCE_FACTOR 2.0
  20. #define EMBREE_DISC_POINT_SELF_INTERSECTION_AVOIDANCE
  21. #if defined(EMBREE_GEOMETRY_TRIANGLE)
  22. #define IF_ENABLED_TRIS(x) x
  23. #else
  24. #define IF_ENABLED_TRIS(x)
  25. #endif
  26. #if defined(EMBREE_GEOMETRY_QUAD)
  27. #define IF_ENABLED_QUADS(x) x
  28. #else
  29. #define IF_ENABLED_QUADS(x)
  30. #endif
  31. #if defined(EMBREE_GEOMETRY_CURVE) || defined(EMBREE_GEOMETRY_POINT)
  32. #define IF_ENABLED_CURVES_OR_POINTS(x) x
  33. #else
  34. #define IF_ENABLED_CURVES_OR_POINTS(x)
  35. #endif
  36. #if defined(EMBREE_GEOMETRY_CURVE)
  37. #define IF_ENABLED_CURVES(x) x
  38. #else
  39. #define IF_ENABLED_CURVES(x)
  40. #endif
  41. #if defined(EMBREE_GEOMETRY_POINT)
  42. #define IF_ENABLED_POINTS(x) x
  43. #else
  44. #define IF_ENABLED_POINTS(x)
  45. #endif
  46. #if defined(EMBREE_GEOMETRY_SUBDIVISION)
  47. #define IF_ENABLED_SUBDIV(x) x
  48. #else
  49. #define IF_ENABLED_SUBDIV(x)
  50. #endif
  51. #if defined(EMBREE_GEOMETRY_USER)
  52. #define IF_ENABLED_USER(x) x
  53. #else
  54. #define IF_ENABLED_USER(x)
  55. #endif
  56. #if defined(EMBREE_GEOMETRY_INSTANCE)
  57. #define IF_ENABLED_INSTANCE(x) x
  58. #else
  59. #define IF_ENABLED_INSTANCE(x)
  60. #endif
  61. #if defined(EMBREE_GEOMETRY_GRID)
  62. #define IF_ENABLED_GRIDS(x) x
  63. #else
  64. #define IF_ENABLED_GRIDS(x)
  65. #endif