added precompiler check if FABS macro is already defined

This commit is contained in:
ganovelli 2008-08-04 10:54:34 +00:00
parent 57c0fc8238
commit d35117d9c2
1 changed files with 3 additions and 2 deletions

View File

@ -46,8 +46,9 @@ namespace vcg {
Triangle/triangle intersection ,based on the algorithm presented in "A Fast Triangle-Triangle Intersection Test",
Journal of Graphics Tools, 2(2), 1997
*/
#define FABS(x) (T(fabs(x)))
#ifndef FABS
#define FABS(x) (T(fabs(x)))
#endif
#define USE_EPSILON_TEST
#define TRI_TRI_INT_EPSILON 0.000001