![]() |
Tesseract 0.28.4
|
A Bullet SDF shape that reads a tesseract::geometry::SignedDistanceField in place. More...
#include <tesseract_sdf_collision_shape.h>

Public Member Functions | |
| BT_DECLARE_ALIGNED_ALLOCATOR () | |
| TesseractSdfCollisionShape (tesseract::geometry::SignedDistanceField::ConstPtr field) | |
| void | getAabb (const btTransform &t, btVector3 &aabbMin, btVector3 &aabbMax) const override |
The field's scaled domain under t, grown by the margin. | |
| void | setLocalScaling (const btVector3 &scaling) override |
| Only unit scaling is accepted (the field carries its own scale). | |
| const btVector3 & | getLocalScaling () const override |
| void | calculateLocalInertia (btScalar mass, btVector3 &inertia) const override |
| Static geometry: zero inertia. | |
| const char * | getName () const override |
| void | processAllTriangles (btTriangleCallback *callback, const btVector3 &aabbMin, const btVector3 &aabbMax) const override |
| No triangles: this shape is only collided through the SDF pair algorithms. | |
| bool | queryPoint (const btVector3 &local_point, btScalar &distance, btVector3 &normal) const |
| Scaled signed distance and outward normal at a point in the shape's frame. | |
| bool | queryDistance (const btVector3 &local_point, btScalar &distance) const |
| Scaled signed distance only, at a point in the shape's frame. Cheaper than queryPoint when the normal may not be needed. | |
| const tesseract::geometry::SignedDistanceField & | getField () const |
A Bullet SDF shape that reads a tesseract::geometry::SignedDistanceField in place.
Bullet's shape for every field (dense, sparse or function-backed): it queries the field itself, with no copy into Bullet's btMiniSDF. It reports SDF_SHAPE_PROXYTYPE, so the existing SDF pair algorithms handle it; they reach the field through makeImplicitSdfShape and querySdfShapePoint. It is the only SDF_SHAPE_PROXYTYPE shape Tesseract creates. The field's own scale is applied here; Bullet local scaling is not supported.
| bool tesseract::collision::bullet_internal::TesseractSdfCollisionShape::queryPoint | ( | const btVector3 & | local_point, |
| btScalar & | distance, | ||
| btVector3 & | normal ) const |
Scaled signed distance and outward normal at a point in the shape's frame.
| bool tesseract::collision::bullet_internal::TesseractSdfCollisionShape::queryDistance | ( | const btVector3 & | local_point, |
| btScalar & | distance ) const |
Scaled signed distance only, at a point in the shape's frame. Cheaper than queryPoint when the normal may not be needed.