Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /********************* Change Number 1 **********************/
- #include <iostream>
- #include "brlcad/Ellipsoid.h"
- #include "primitives.h"
- #include "vmath.h"
- #include "bn/tol.h"
- /* Changed to */
- #include <iostream>
- #include "brlcad/Ellipsoid.h"
- #include "primitives.h"
- #include "vmath.h"
- #include "bn/tol.h"
- #include "raytrace.h"
- /************************************************************/
- /********************* Change Number 2 **********************/
- #define AXIS_ORTHOGONAL(a, b, c) \
- (NEAR_EQUAL(VDOT(a.coordinates, b.coordinates), 0, BN_TOL_DIST) && \
- NEAR_EQUAL(VDOT(b.coordinates, c.coordinates), 0, BN_TOL_DIST) && \
- NEAR_EQUAL(VDOT(a.coordinates, c.coordinates), 0, BN_TOL_DIST))
- /* Changed to */
- #define AXIS_ORTHOGONAL(a, b, c) \
- (NEAR_ZERO(VDOT(a.coordinates, b.coordinates), RT_DOT_TOL) && \
- NEAR_ZERO(VDOT(b.coordinates, c.coordinates), RT_DOT_TOL) && \
- NEAR_ZERO(VDOT(a.coordinates, c.coordinates), RT_DOT_TOL))
- /*************************************************************/
- /********************* Change Number 3 **********************/
- #define ADD_TEST(expression) \
- if (!expression) { \
- std::cout << "Failed test: " << #expression << std::endl; \
- return; \
- }
- /* Changed to */
- #define ADD_TEST(expression) \
- if (!expression) { \
- std::cout << "Failed test: " << #expression << std::endl; \
- } \
- else { \
- std::cout << "Passed test: " << #expression << std::endl; \
- }
- /*************************************************************/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement