Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
Go to the source code of this file.
Macros | |
#define | LOCAL_EPSILON 0.000001f |
if OPC_TRITRI_EPSILON_TEST is true then we do a check (if |dv|<EPSILON then dv=0.0;) else no check is done (which is less robust, but faster) More... | |
#define | SORT(a, b) |
sort so that a<=b More... | |
#define | EDGE_EDGE_TEST(V0, U0, U1) |
Edge to edge test based on Franlin Antonio's gem: "Faster Line Segment Intersection", in Graphics Gems III, pp. 199-202. More... | |
#define | EDGE_AGAINST_TRI_EDGES(V0, V1, U0, U1, U2) |
TO BE DOCUMENTED. More... | |
#define | POINT_IN_TRI(V0, U0, U1, U2) |
TO BE DOCUMENTED. More... | |
#define | NEWCOMPUTE_INTERVALS(VV0, VV1, VV2, D0, D1, D2, D0D1, D0D2, A, B, C, X0, X1) |
TO BE DOCUMENTED. More... | |
Functions | |
bool | CoplanarTriTri (const Point &n, const Point &v0, const Point &v1, const Point &v2, const Point &u0, const Point &u1, const Point &u2) |
TO BE DOCUMENTED. More... | |
TO BE DOCUMENTED.
Definition at line 36 of file OPC_TriTriOverlap.h.
Referenced by CoplanarTriTri().
#define EDGE_EDGE_TEST | ( | V0, | |
U0, | |||
U1 | |||
) |
Edge to edge test based on Franlin Antonio's gem: "Faster Line Segment Intersection", in Graphics Gems III, pp. 199-202.
Definition at line 15 of file OPC_TriTriOverlap.h.
#define LOCAL_EPSILON 0.000001f |
if OPC_TRITRI_EPSILON_TEST is true then we do a check (if |dv|<EPSILON then dv=0.0;) else no check is done (which is less robust, but faster)
Definition at line 3 of file OPC_TriTriOverlap.h.
#define NEWCOMPUTE_INTERVALS | ( | VV0, | |
VV1, | |||
VV2, | |||
D0, | |||
D1, | |||
D2, | |||
D0D1, | |||
D0D2, | |||
A, | |||
B, | |||
C, | |||
X0, | |||
X1 | |||
) |
TO BE DOCUMENTED.
Definition at line 124 of file OPC_TriTriOverlap.h.
#define POINT_IN_TRI | ( | V0, | |
U0, | |||
U1, | |||
U2 | |||
) |
TO BE DOCUMENTED.
Definition at line 50 of file OPC_TriTriOverlap.h.
Referenced by CoplanarTriTri().
bool CoplanarTriTri | ( | const Point & | n, |
const Point & | v0, | ||
const Point & | v1, | ||
const Point & | v2, | ||
const Point & | u0, | ||
const Point & | u1, | ||
const Point & | u2 | ||
) |
TO BE DOCUMENTED.
Definition at line 75 of file OPC_TriTriOverlap.h.
References EDGE_AGAINST_TRI_EDGES, FALSE, and POINT_IN_TRI.