|
FCL
0.6.0
Flexible Collision Library
|
distance result More...
#include <distance_result.h>
Public Member Functions | |
| DistanceResult (S min_distance_=std::numeric_limits< S >::max()) | |
| void | update (S distance, const CollisionGeometry< S > *o1_, const CollisionGeometry< S > *o2_, int b1_, int b2_) |
| add distance information into the result | |
| void | update (S distance, const CollisionGeometry< S > *o1_, const CollisionGeometry< S > *o2_, int b1_, int b2_, const Vector3< S > &p1, const Vector3< S > &p2) |
| add distance information into the result | |
| void | update (const DistanceResult &other_result) |
| add distance information into the result | |
| void | clear () |
| clear the result | |
Public Attributes | |
| S | min_distance |
| minimum distance between two objects. if two objects are in collision, min_distance <= 0. | |
| Vector3< S > | nearest_points [2] |
| nearest points | |
| const CollisionGeometry< S > * | o1 |
| collision object 1 | |
| const CollisionGeometry< S > * | o2 |
| collision object 2 | |
| int | b1 |
| information about the nearest point in object 1 if object 1 is mesh or point cloud, it is the triangle or point id if object 1 is geometry shape, it is NONE (-1), if object 1 is octree, it is the id of the cell | |
| int | b2 |
| information about the nearest point in object 2 if object 2 is mesh or point cloud, it is the triangle or point id if object 2 is geometry shape, it is NONE (-1), if object 2 is octree, it is the id of the cell | |
Static Public Attributes | |
| static const int | NONE = -1 |
| invalid contact primitive information | |
distance result