$search
A class describing the collision result. More...
#include <collision_primitive.h>
Public Member Functions | |
void | add (int id1, int id2, Vec3f contact_point, BVH_REAL penetration_depth, const Vec3f &normal, BVH_REAL time=0) |
void | add (int id1, int id2, BVH_REAL time=0) |
Add one collision pair. | |
BVH_CollideResult () | |
BVHCollisionPair * | collidePairs () |
Return the collision pairs. | |
int | colliding () |
Whether a collision happens. | |
int | id1 (int i) const |
Return the collision primitive id of one object. | |
int | id2 (int i) const |
Return the collision primitive id of the other object. | |
int | numPairs () const |
Number of collision pairs found. | |
void | resetRecord () |
Reset the collision statistics. | |
~BVH_CollideResult () | |
Public Attributes | |
int | num_bv_tests |
Number of BV collision test performed. | |
int | num_ee_tests |
Number of edge-edge test performed (in CCD). | |
int | num_max_contacts |
Maximum number of contacts, default 0 contact contact = 0, means only interested in collision contact > 0, means we need to compute contact pos, normal. | |
int | num_tri_tests |
Number of triangle collision test performed. | |
int | num_vf_tests |
Number of vertex-face test performed (in CCD). | |
BVH_REAL | query_time_seconds |
Query time used. | |
Private Member Functions | |
void | sizeTo (int n) |
Private Attributes | |
int | num_pairs |
int | num_pairs_allocated |
BVHCollisionPair * | pairs |
A class describing the collision result.
Definition at line 73 of file collision_primitive.h.
collision_checking::BVH_CollideResult::BVH_CollideResult | ( | ) |
Definition at line 42 of file collision_primitive.cpp.
collision_checking::BVH_CollideResult::~BVH_CollideResult | ( | ) |
Definition at line 58 of file collision_primitive.cpp.
void collision_checking::BVH_CollideResult::add | ( | int | id1, | |
int | id2, | |||
Vec3f | contact_point, | |||
BVH_REAL | penetration_depth, | |||
const Vec3f & | normal, | |||
BVH_REAL | time = 0 | |||
) |
Definition at line 88 of file collision_primitive.cpp.
void collision_checking::BVH_CollideResult::add | ( | int | id1, | |
int | id2, | |||
BVH_REAL | time = 0 | |||
) |
Add one collision pair.
Definition at line 77 of file collision_primitive.cpp.
BVHCollisionPair* collision_checking::BVH_CollideResult::collidePairs | ( | ) | [inline] |
Return the collision pairs.
Definition at line 137 of file collision_primitive.h.
int collision_checking::BVH_CollideResult::colliding | ( | ) | [inline] |
Whether a collision happens.
Definition at line 106 of file collision_primitive.h.
int collision_checking::BVH_CollideResult::id1 | ( | int | i | ) | const [inline] |
Return the collision primitive id of one object.
Definition at line 125 of file collision_primitive.h.
int collision_checking::BVH_CollideResult::id2 | ( | int | i | ) | const [inline] |
Return the collision primitive id of the other object.
Definition at line 131 of file collision_primitive.h.
int collision_checking::BVH_CollideResult::numPairs | ( | ) | const [inline] |
Number of collision pairs found.
Definition at line 119 of file collision_primitive.h.
void collision_checking::BVH_CollideResult::resetRecord | ( | ) | [inline] |
Reset the collision statistics.
Definition at line 109 of file collision_primitive.h.
void collision_checking::BVH_CollideResult::sizeTo | ( | int | n | ) | [private] |
Definition at line 64 of file collision_primitive.cpp.
Number of BV collision test performed.
Definition at line 76 of file collision_primitive.h.
Number of edge-edge test performed (in CCD).
Definition at line 85 of file collision_primitive.h.
Maximum number of contacts, default 0 contact contact = 0, means only interested in collision contact > 0, means we need to compute contact pos, normal.
Definition at line 94 of file collision_primitive.h.
int collision_checking::BVH_CollideResult::num_pairs [private] |
Definition at line 144 of file collision_primitive.h.
Definition at line 143 of file collision_primitive.h.
Number of triangle collision test performed.
Definition at line 79 of file collision_primitive.h.
Number of vertex-face test performed (in CCD).
Definition at line 82 of file collision_primitive.h.
Definition at line 145 of file collision_primitive.h.
Query time used.
Definition at line 88 of file collision_primitive.h.