Skip to content

Computing multiple contact points for Box-Box collision #617

Answered by lmontaut
vastsoun asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @vastsoun,
You can check out #574 to see how to compute multiple contact points.
More processing is required to go from collision detection (computing the contact normal and a pair of contact points) to contact surface computation (computing multiple pairs of contact points that all share the same contact normal). Therefore, the contact surface computation uses the computeContactPatch function.

The num_max_contacts parameter in the CollisionRequest is the maximum number of contact normals that collide can compute. Since primitives are convex in hpp-fcl (box, sphere, ellipsoid, cones, convex meshes etc.), there is only one normal per call to collide.
The num_max_contacts is therefore on…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@vastsoun
Comment options

Answer selected by vastsoun
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #616 on August 20, 2024 13:12.