Go to the source code of this file.
Defines | |
#define | AXISTEST_X01(a, b, fa, fb) |
TO BE DOCUMENTED. | |
#define | AXISTEST_X2(a, b, fa, fb) |
TO BE DOCUMENTED. | |
#define | AXISTEST_Y02(a, b, fa, fb) |
TO BE DOCUMENTED. | |
#define | AXISTEST_Y1(a, b, fa, fb) |
TO BE DOCUMENTED. | |
#define | AXISTEST_Z0(a, b, fa, fb) |
TO BE DOCUMENTED. | |
#define | AXISTEST_Z12(a, b, fa, fb) |
TO BE DOCUMENTED. | |
#define | FINDMINMAX(x0, x1, x2, min, max) |
This macro quickly finds the min & max values among 3 variables. | |
#define | IMPLEMENT_CLASS3_TESTS |
Functions | |
inline_ BOOL | planeBoxOverlap (const Point &normal, const float d, const Point &maxbox) |
TO BE DOCUMENTED. |
#define AXISTEST_X01 | ( | a, | |
b, | |||
fa, | |||
fb | |||
) |
#define AXISTEST_X2 | ( | a, | |
b, | |||
fa, | |||
fb | |||
) |
#define AXISTEST_Y02 | ( | a, | |
b, | |||
fa, | |||
fb | |||
) |
#define AXISTEST_Y1 | ( | a, | |
b, | |||
fa, | |||
fb | |||
) |
#define AXISTEST_Z0 | ( | a, | |
b, | |||
fa, | |||
fb | |||
) |
#define AXISTEST_Z12 | ( | a, | |
b, | |||
fa, | |||
fb | |||
) |
#define FINDMINMAX | ( | x0, | |
x1, | |||
x2, | |||
min, | |||
max | |||
) |
#define IMPLEMENT_CLASS3_TESTS |
float rad; \ float min, max; \ \ const float fey0 = fabsf(e0.y); \ const float fez0 = fabsf(e0.z); \ AXISTEST_X01(e0.z, e0.y, fez0, fey0); \ const float fex0 = fabsf(e0.x); \ AXISTEST_Y02(e0.z, e0.x, fez0, fex0); \ AXISTEST_Z12(e0.y, e0.x, fey0, fex0); \ \ const float fey1 = fabsf(e1.y); \ const float fez1 = fabsf(e1.z); \ AXISTEST_X01(e1.z, e1.y, fez1, fey1); \ const float fex1 = fabsf(e1.x); \ AXISTEST_Y02(e1.z, e1.x, fez1, fex1); \ AXISTEST_Z0(e1.y, e1.x, fey1, fex1); \ \ const Point e2 = mLeafVerts[0] - mLeafVerts[2]; \ const float fey2 = fabsf(e2.y); \ const float fez2 = fabsf(e2.z); \ AXISTEST_X2(e2.z, e2.y, fez2, fey2); \ const float fex2 = fabsf(e2.x); \ AXISTEST_Y1(e2.z, e2.x, fez2, fex2); \ AXISTEST_Z12(e2.y, e2.x, fey2, fex2);
Definition at line 78 of file OPC_TriBoxOverlap.h.
TO BE DOCUMENTED.
Definition at line 11 of file OPC_TriBoxOverlap.h.