|
bool | compute_intervals (const GREAL &D0, const GREAL &D1, const GREAL &D2, const GREAL &D0D1, const GREAL &D0D2, GREAL &scale_edge0, GREAL &scale_edge1, GUINT &edge_index0, GUINT &edge_index1) |
| if returns false, the faces are paralele More...
|
|
GUINT | clip_triangle (const btVector4 &tri_plane, const btVector3 *tripoints, const btVector3 *srcpoints, btVector3 *clip_points) |
| clip triangle More...
|
|
void | sort_isect (GREAL &isect0, GREAL &isect1, GUINT &e0, GUINT &e1, btVector3 &vec0, btVector3 &vec1) |
|
GUINT | cross_line_intersection_test () |
| Test verifying interval intersection with the direction between planes. More...
|
|
bool | triangle_collision (const btVector3 &u0, const btVector3 &u1, const btVector3 &u2, GREAL margin_u, const btVector3 &v0, const btVector3 &v1, const btVector3 &v2, GREAL margin_v, GIM_TRIANGLE_CONTACT_DATA &contacts) |
| collides by two sides More...
|
|
Definition at line 41 of file gim_tri_collision.cpp.
bool GIM_TRIANGLE_CALCULATION_CACHE::compute_intervals |
( |
const GREAL & |
D0, |
|
|
const GREAL & |
D1, |
|
|
const GREAL & |
D2, |
|
|
const GREAL & |
D0D1, |
|
|
const GREAL & |
D0D2, |
|
|
GREAL & |
scale_edge0, |
|
|
GREAL & |
scale_edge1, |
|
|
GUINT & |
edge_index0, |
|
|
GUINT & |
edge_index1 |
|
) |
| |
|
inline |
GUINT GIM_TRIANGLE_CALCULATION_CACHE::cross_line_intersection_test |
( |
| ) |
|
|
inline |
Test verifying interval intersection with the direction between planes.
- Precondition
- tv_plane and tu_plane must be set
- Postcondition
- distances[2] is set with the distance closest_point_u, closest_point_v, edge_edge_dir are set too
- Returns
- 0: faces are paralele
- 1: face U casts face V
- 2: face V casts face U
- 3: nearest edges
Definition at line 200 of file gim_tri_collision.cpp.
btVector3 GIM_TRIANGLE_CALCULATION_CACHE::closest_point_u |
btVector3 GIM_TRIANGLE_CALCULATION_CACHE::closest_point_v |
btVector3 GIM_TRIANGLE_CALCULATION_CACHE::distances |
GREAL GIM_TRIANGLE_CALCULATION_CACHE::du[4] |
GREAL GIM_TRIANGLE_CALCULATION_CACHE::du0du1 |
GREAL GIM_TRIANGLE_CALCULATION_CACHE::du0du2 |
GREAL GIM_TRIANGLE_CALCULATION_CACHE::dv[4] |
GREAL GIM_TRIANGLE_CALCULATION_CACHE::dv0dv1 |
GREAL GIM_TRIANGLE_CALCULATION_CACHE::dv0dv2 |
btVector3 GIM_TRIANGLE_CALCULATION_CACHE::edge_edge_dir |
GREAL GIM_TRIANGLE_CALCULATION_CACHE::margin |
btVector4 GIM_TRIANGLE_CALCULATION_CACHE::tu_plane |
btVector3 GIM_TRIANGLE_CALCULATION_CACHE::tu_vertices[3] |
btVector4 GIM_TRIANGLE_CALCULATION_CACHE::tv_plane |
btVector3 GIM_TRIANGLE_CALCULATION_CACHE::tv_vertices[3] |
The documentation for this class was generated from the following file: