![]() |
RobWorkProject
23.9.11-
|
tests if two swept sphere triangles are intersecting. This corresponds to testing if two triangles are within a certain distqance (tolerance) of each other More...
#include <TriTriToleranceIntersect.hpp>
Inherits BVCollider< TriTriToleranceIntersect< double >, rw::geometry::Triangle< double > >.
Public Types | |
typedef T | value_type |
Type for internal values. | |
![]() | |
typedef rw::geometry::Triangle< double > | BVType |
typedef BVTYPE::value_type | value_type |
Public Member Functions | |
void | setTolerance (T tolerance) |
set the tolerance of the collider More... | |
bool | collides (const rw::geometry::Triangle< T > &a, const rw::geometry::Triangle< T > &b, const rw::math::Transform3D< T > &aTb) |
test if obbA is closer than tolerance to obbB. The aTb transform describe obbB relative to obbA's coordinate frame. This method is approximate and the obb's may lie up to sqrt(tolerance^2+tolerance^2) away from each other. | |
bool | collides (const rw::geometry::Triangle< T > &a, const rw::geometry::Triangle< T > &b, const rw::math::Transform3D< T > &aTb, double tolerance) |
test if obbA is closer than tolerance to obbB. The aTb transform describe obbB relative to obbA's coordinate frame. This method is approximate and the obb's may lie up to sqrt(tolerance^2+tolerance^2) away from each other. | |
![]() | |
BVCollider () | |
constructor | |
virtual | ~BVCollider () |
destructor | |
bool | inCollision (const rw::geometry::Triangle< double > &bvA, const rw::geometry::Triangle< double > &bvB, const rw::math::Transform3D< value_type > &aTb) |
test if two bounding volumes are colliding More... | |
tests if two swept sphere triangles are intersecting. This corresponds to testing if two triangles are within a certain distqance (tolerance) of each other
|
inline |
set the tolerance of the collider
tolerance | [in] meters |