Advertisement
dracarys983

Changes

Mar 11th, 2015
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.58 KB | None | 0 0
  1. /********************* Change Number 1 **********************/
  2. #include <iostream>
  3.  
  4. #include "brlcad/Ellipsoid.h"
  5.  
  6. #include "primitives.h"
  7.  
  8. #include "vmath.h"
  9. #include "bn/tol.h"
  10.  
  11.              /* Changed to */
  12.  
  13. #include <iostream>
  14.  
  15. #include "brlcad/Ellipsoid.h"
  16.  
  17. #include "primitives.h"
  18.  
  19. #include "vmath.h"
  20. #include "bn/tol.h"
  21. #include "raytrace.h"
  22.  
  23. /************************************************************/
  24.  
  25. /********************* Change Number 2 **********************/
  26. #define AXIS_ORTHOGONAL(a, b, c)            \
  27.     (NEAR_EQUAL(VDOT(a.coordinates, b.coordinates), 0, BN_TOL_DIST) &&  \
  28.      NEAR_EQUAL(VDOT(b.coordinates, c.coordinates), 0, BN_TOL_DIST) &&  \
  29.      NEAR_EQUAL(VDOT(a.coordinates, c.coordinates), 0, BN_TOL_DIST))
  30.  
  31.              /* Changed to */
  32.  
  33. #define AXIS_ORTHOGONAL(a, b, c)            \
  34.     (NEAR_ZERO(VDOT(a.coordinates, b.coordinates), RT_DOT_TOL) &&   \
  35.      NEAR_ZERO(VDOT(b.coordinates, c.coordinates), RT_DOT_TOL) &&   \
  36.      NEAR_ZERO(VDOT(a.coordinates, c.coordinates), RT_DOT_TOL))
  37.  
  38. /*************************************************************/
  39.  
  40. /********************* Change Number 3 **********************/
  41. #define ADD_TEST(expression) \
  42.     if (!expression) {                          \
  43.     std::cout << "Failed test: " << #expression << std::endl;   \
  44.     return;     \
  45.     }
  46.  
  47.             /* Changed to */
  48.  
  49. #define ADD_TEST(expression) \
  50.     if (!expression) {                          \
  51.     std::cout << "Failed test: " << #expression << std::endl;   \
  52.     }   \
  53.     else {  \
  54.     std::cout << "Passed test: " << #expression << std::endl;   \
  55.     }
  56.  
  57. /*************************************************************/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement