Skip to content
Snippets Groups Projects
Commit 405d746c authored by Florent Lamiraux's avatar Florent Lamiraux Committed by Florent Lamiraux florent@laas.fr
Browse files

Fix details::sphereTriangleIntersect.

parent a439019e
No related branches found
No related tags found
No related merge requests found
......@@ -424,7 +424,9 @@ namespace fcl {
Vec3f unit (center_to_contact.normalized ());
p1 = center + radius * unit;
p2 = contact_point;
distance = (p2 - p1).norm ();
}
assert ((distance < 0) || (fabs (distance - (p2-p1).norm ()) < 1e-7));
return has_contact;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment