40 #include "../narrowphase/details.h" 53 result.nearest_points[1], result.nearest_points[0],
59 result.normal = -result.normal;
60 return result.min_distance;
71 result.nearest_points[0], result.nearest_points[1],
77 return result.min_distance;
request to the distance computation
FCL_REAL ShapeShapeDistance< ConvexBase, Halfspace >(const CollisionGeometry *o1, const Transform3f &tf1, const CollisionGeometry *o2, const Transform3f &tf2, const GJKSolver *, const DistanceRequest &, DistanceResult &result)
Half Space: this is equivalent to the Plane in ODE. The separation plane is defined as n * x = d; Poi...
FCL_REAL ShapeShapeDistance< Halfspace, ConvexBase >(const CollisionGeometry *o1, const Transform3f &tf1, const CollisionGeometry *o2, const Transform3f &tf2, const GJKSolver *, const DistanceRequest &, DistanceResult &result)
bool halfspaceDistance(const Halfspace &h, const Transform3f &tf1, const ShapeBase &s, const Transform3f &tf2, FCL_REAL &dist, Vec3f &p1, Vec3f &p2, Vec3f &normal)
Base for convex polytope.
collision and distance solver based on GJK algorithm implemented in fcl (rewritten the code from the ...
The geometry for the object for collision or distance computation.